Stay organized with collections
Save and categorize content based on your preferences.
tensorflow::ops::Abort
#include <control_flow_ops.h>
Raise a exception to abort the process when called.
Summary
If exit_without_error is true, the process will exit normally, otherwise it will exit with a SIGABORT signal.
Returns nothing but an exception.
Arguments:
Optional attributes (see Attrs
):
- error_msg: A string which is the message associated with the exception.
Returns:
Public attributes
Public functions
operator::tensorflow::Operation
operator::tensorflow::Operation() const
Public static functions
ErrorMsg
Attrs ErrorMsg(
StringPiece x
)
ExitWithoutError
Attrs ExitWithoutError(
bool x
)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-04-20 UTC.
[null,null,["Last updated 2020-04-20 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/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n\n\u003cbr /\u003e\n\nOptional attributes (see [Attrs](/versions/r1.15/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/r1.15/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/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope)` ||\n| [Abort](#classtensorflow_1_1ops_1_1_abort_1a454530dc73efb0c918895564c3a1c3aa)`(const ::`[tensorflow::Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, const `[Abort::Attrs](/versions/r1.15/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/r1.15/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/r1.15/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/r1.15/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/r1.15/api_docs/cc/struct/tensorflow/ops/abort/attrs) | Optional attribute setters for [Abort](/versions/r1.15/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```"]]