tf.errors
Exception types for TensorFlow errors.
Constant ABORTED
Constant ALREADY_EXISTS
class AbortedError: The operation was aborted, typically due to a concurrent action.
class AlreadyExistsError: Raised when an entity that we attempted to create already exists.
Constant CANCELLED
class CancelledError: Raised when an operation or step is cancelled.
Constant DATA_LOSS
Constant DEADLINE_EXCEEDED
class DataLossError: Raised when unrecoverable data loss or corruption is encountered.
class DeadlineExceededError: Raised when a deadline expires before an operation could complete.
Constant FAILED_PRECONDITION
class FailedPreconditionError: Operation was rejected because the system is not in a state to execute it.
Constant INTERNAL
Constant INVALID_ARGUMENT
class InternalError: Raised when the system experiences an internal error.
class InvalidArgumentError: Raised when an operation receives an invalid argument.
Constant NOT_FOUND
class NotFoundError: Raised when a requested entity (e.g., a file or directory) was not found.
Constant OK
Constant OUT_OF_RANGE
class OpError: A generic error that is raised when TensorFlow execution fails.
class OutOfRangeError: Raised when an operation iterates past the valid input range.
Constant PERMISSION_DENIED
class PermissionDeniedError: Raised when the caller does not have permission to run an operation.
Constant RESOURCE_EXHAUSTED
class ResourceExhaustedError: Some resource has been exhausted.
Constant UNAUTHENTICATED
Constant UNAVAILABLE
Constant UNIMPLEMENTED
Constant UNKNOWN
class UnauthenticatedError: The request does not have valid authentication credentials.
class UnavailableError: Raised when the runtime is currently unavailable.
class UnimplementedError: Raised when an operation has not been implemented.
class UnknownError: Unknown error.
error_code_from_exception_type(...)
exception_type_from_error_code(...)
raise_exception_on_not_ok_status(...)
Defined in tensorflow/python/framework/errors.py.
© 2017 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/errors