Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
tensor akışı:: işlem:: İptal et
#include <control_flow_ops.h>
Çağrıldığında işlemi iptal etmek için bir istisna oluşturun.
Özet
Eğer çıkış_without_error doğruysa, süreç normal şekilde çıkacaktır, aksi halde SIGABORT sinyaliyle çıkacaktır.
İstisna dışında hiçbir şey döndürmez.
Argümanlar:
İsteğe bağlı özellikler (bkz. Attrs
):
- error_msg: İstisnayla ilişkili mesajın bulunduğu bir dize.
İade:
Genel özellikler
Kamu işlevleri
operatör::tensorflow::İşlem
operator::tensorflow::Operation() const
Genel statik işlevler
Hata Mesajı
Attrs ErrorMsg(
StringPiece x
)
Hatasız Çıkış
Attrs ExitWithoutError(
bool x
)
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-26 UTC.
[null,null,["Son güncelleme tarihi: 2025-07-26 UTC."],[],[],null,["# tensorflow::ops::Abort Class Reference\n\ntensorflow::ops::Abort\n======================\n\n`#include \u003ccontrol_flow_ops.h\u003e`\n\nRaise a exception to abort the process when called.\n\nSummary\n-------\n\nIf exit_without_error is true, the process will exit normally, otherwise it will exit with a SIGABORT signal.\n\nReturns nothing but an exception.\n\nArguments:\n\n- scope: A [Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n\n\u003cbr /\u003e\n\nOptional attributes (see [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/abort/attrs#structtensorflow_1_1ops_1_1_abort_1_1_attrs)):\n\n- error_msg: A string which is the message associated with the exception.\n\n\u003cbr /\u003e\n\nReturns:\n\n- the created [Operation](/versions/r2.1/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation)\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [Abort](#classtensorflow_1_1ops_1_1_abort_1ae3e887b2d01e7ca0d7b542402fb6109c)`(const ::`[tensorflow::Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope)` ||\n| [Abort](#classtensorflow_1_1ops_1_1_abort_1a454530dc73efb0c918895564c3a1c3aa)`(const ::`[tensorflow::Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, const `[Abort::Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/abort/attrs#structtensorflow_1_1ops_1_1_abort_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|-----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_abort_1a03764bd8e9c8d8208fb5326499a82414) | [Operation](/versions/r2.1/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n\n| ### Public functions ||\n|--------------------------------------------------------------------------------------------------------------------|---------|\n| [operator::tensorflow::Operation](#classtensorflow_1_1ops_1_1_abort_1a81e311c61ceced865499b5c3a685a974)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|----------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------|\n| [ErrorMsg](#classtensorflow_1_1ops_1_1_abort_1a93fa562bb7d000cf7568e9995a67757b)`(StringPiece x)` | [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/abort/attrs#structtensorflow_1_1ops_1_1_abort_1_1_attrs) |\n| [ExitWithoutError](#classtensorflow_1_1ops_1_1_abort_1af4eb7322975126f0aeb2fee41d05ddd9)`(bool x)` | [Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/abort/attrs#structtensorflow_1_1ops_1_1_abort_1_1_attrs) |\n\n| ### Structs ||\n|-----------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::Abort::Attrs](/versions/r2.1/api_docs/cc/struct/tensorflow/ops/abort/attrs) | Optional attribute setters for [Abort](/versions/r2.1/api_docs/cc/class/tensorflow/ops/abort#classtensorflow_1_1ops_1_1_abort). |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\nPublic functions\n----------------\n\n### Abort\n\n```gdscript\n Abort(\n const ::tensorflow::Scope & scope\n)\n``` \n\n### Abort\n\n```gdscript\n Abort(\n const ::tensorflow::Scope & scope,\n const Abort::Attrs & attrs\n)\n``` \n\n### operator::tensorflow::Operation\n\n```gdscript\n operator::tensorflow::Operation() const \n``` \n\nPublic static functions\n-----------------------\n\n### ErrorMsg\n\n```text\nAttrs ErrorMsg(\n StringPiece x\n)\n``` \n\n### ExitWithoutError\n\n```text\nAttrs ExitWithoutError(\n bool x\n)\n```"]]