目录
一、总述
1、类
2、函数
3、Other Members
二、重要的类
1、类OutOfRangeError
TensorFlow错误的异常类型。
一、总述
1、类
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.class CancelledError
: Raised when an operation or step is cancelled.class DataLossError
: Raised when unrecoverable data loss or corruption is encountered.class DeadlineExceededError
: Raised when a deadline expires before an operation could complete.class FailedPreconditionError
: Operation was rejected because the system is not in a state to execute it.class InternalError
: Raised when the system experiences an internal error.class InvalidArgumentError
: Raised when an operation receives an invalid argument.class NotFoundError
: Raised when a requested entity (e.g., a file or directory) was not found.class OpError
: A generic error that is raised when TensorFlow execution fails.class OutOfRangeError
: Raised when an operation iterates past the valid input range.class PermissionDeniedError
: Raised when the caller does not have permission to run an operation.class ResourceExhaustedError
: Some resource has been exhausted.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.class raise_exception_on_not_ok_status
: Context manager to check for C API status.
2、函数
error_code_from_exception_type(...)
exception_type_from_error_code(...)
3、Other Members
ABORTED
ALREADY_EXISTS
CANCELLED
DATA_LOSS
DEADLINE_EXCEEDED
FAILED_PRECONDITION
INTERNAL
INVALID_ARGUMENT
NOT_FOUND
OK
OUT_OF_RANGE
PERMISSION_DENIED
RESOURCE_EXHAUSTED
UNAUTHENTICATED
UNAVAILABLE
UNIMPLEMENTED
UNKNOWN
二、重要的类
1、类OutOfRangeError
Inherits From: OpError
Defined in tensorflow/python/framework/errors_impl.py
.
See the guides: Reading data > QueueRunner
, Running Graphs > Error classes and convenience functions
Raised when an operation iterates past the valid input range.
This exception is raised in "end-of-file" conditions, such as when a tf.QueueBase.dequeue
operation is blocked on an empty queue, and a tf.QueueBase.close
operation executes.
Properties
error_code
The integer error code that describes the error.
message
The error message that describes the error.
node_def
The NodeDef
proto representing the op that failed.
op
The operation that failed, if known.
N.B. If the failed op was synthesized at runtime, e.g. a Send
or Recv
op, there will be no corresponding tf.Operation
object. In that case, this will return None
, and you should instead use the tf.OpError.node_def
to discover information about the op.
Returns:
- The
Operation
that failed, or None.
Methods
__init__
__init__(
node_def,
op,
message
)
Creates an OutOfRangeError
.