TensorFlow 2.0 Beta is available Learn more

tf.errors.raise_exception_on_not_ok_status

Class raise_exception_on_not_ok_status

Context manager to check for C API status.

Aliases:

  • Class tf.compat.v1.errors.raise_exception_on_not_ok_status
  • Class tf.errors.raise_exception_on_not_ok_status

Defined in python/framework/errors_impl.py.

Methods

__enter__

__enter__()

__exit__

__exit__(
    type_arg,
    value_arg,
    traceback_arg
)