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:
- scope: A Scope object
Optional attributes (see Attrs
):
- error_msg: A string which is the message associated with the exception.
Returns:
- the created
Operation
Constructors and Destructors | |
---|---|
Abort(const ::tensorflow::Scope & scope) | |
Abort(const ::tensorflow::Scope & scope, const Abort::Attrs & attrs) |
Public attributes | |
---|---|
operation |
Public functions | |
---|---|
operator::tensorflow::Operation() const |
Public static functions | |
---|---|
ErrorMsg(StringPiece x) | |
ExitWithoutError(bool x) |
Structs | |
---|---|
tensorflow::ops::Abort::Attrs | Optional attribute setters for Abort. |
Public attributes
operation
Operation operation
Public functions
Abort
Abort( const ::tensorflow::Scope & scope )
Abort
Abort( const ::tensorflow::Scope & scope, const Abort::Attrs & attrs )
operator::tensorflow::Operation
operator::tensorflow::Operation() const
Public static functions
ErrorMsg
Attrs ErrorMsg( StringPiece x )
ExitWithoutError
Attrs ExitWithoutError( bool x )
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.4/api_docs/cc/class/tensorflow/ops/abort