Abort

public final class Abort

Raise a exception to abort the process when called.

If exit_without_error is true, the process will exit normally, otherwise it will exit with a SIGABORT signal.

Returns nothing but an exception.

Nested Classes

class Abort.Options Optional attributes for Abort  

Public Methods

static Abort
create(Scope scope, Options... options)
Factory method to create a class wrapping a new Abort operation.
static Abort.Options
errorMsg(String errorMsg)
static Abort.Options
exitWithoutError(Boolean exitWithoutError)

Inherited Methods

org.tensorflow.op.PrimitiveOp
final boolean
equals(Object obj)
final int
Operation
op()
Returns the underlying Operation
final String
boolean
equals(Object arg0)
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()

Public Methods

public static Abort create (Scope scope, Options... options)

Factory method to create a class wrapping a new Abort operation.

Parameters
scope current scope
options carries optional attributes values
Returns
  • a new instance of Abort

public static Abort.Options errorMsg (String errorMsg)

Parameters
errorMsg A string which is the message associated with the exception.

public static Abort.Options exitWithoutError (Boolean exitWithoutError)