ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more


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.

error_msg An optional string. Defaults to "". A string which is the message associated with the exception.
exit_without_error An optional bool. Defaults to False.
name A name for the operation (optional).

The created Operation.