当前位置:网站首页>tf. errors
tf. errors
2022-06-24 10:18:00 【Wanderer001】
Reference resources tf.errors - cloud + Community - Tencent cloud
Catalog
TensorFlow Bad exception type .
One 、 executive summary
1、 class
- 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、 function
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
Two 、 Important classes
1、 class 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
Operationthat failed, or None.
Methods
__init__
__init__(
node_def,
op,
message
)
Creates an OutOfRangeError.
2、tf.errors.OpError
Class OpError
A generic error that is raised when TensorFlow execution fails.
Aliases:
Whenever possible, the session will raise a more specific subclass of OpError from the tf.errors module.
1、__init__
__init__(
node_def,
op,
message,
error_code
)
Creates a new OpError indicating that a particular op failed.
Args:
node_def: Thenode_def_pb2.NodeDefproto representing the op that failed, if known; otherwise None.op: Theops.Operationthat failed, if known; otherwise None.message: The message string describing the failure.error_code: Theerror_codes_pb2.Codedescribing the error.
2、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.errors.OpError.node_def to discover information about the op.
Returns:
The Operation that failed, or None.
边栏推荐
猜你喜欢

线程的 sleep() 方法与 wait() 方法的区别

413 binary tree Foundation

numpy.linspace()

How to customize sharing links in wechat for H5 web pages

p5.js实现的炫酷交互式动画js特效

SVG+js拖拽滑块圆形进度条

Troubleshooting steps for Oracle pool connection request timeout

机器学习——主成分分析(PCA)

leetCode-498: 對角線遍曆

4. classification management business development
随机推荐
Engine localization adaptation & Reconstruction notes
Machine learning - principal component analysis (PCA)
leetCode-223: 矩形面积
形状变化loader加载jsjs特效代码
leetCode-面试题 01.05: 一次编辑
415 binary tree (144. preorder traversal of binary tree, 145. postorder traversal of binary tree, 94. inorder traversal of binary tree)
Is there a reliable and low commission futures account opening channel in China? Is it safe to open an account online?
Machine learning perceptron and k-nearest neighbor
Error reading CSV (TSV) file
How to improve the efficiency of network infrastructure troubleshooting and bid farewell to data blackouts?
2022-06-23: given a nonnegative array, select any number to make the maximum cumulative sum a multiple of 7, and return the maximum cumulative sum. N is larger, to the 5th power of 10. From meituan. 3
Regular matching mailbox
6. package management business development
Observer mode
23. Opencv——图像拼接项目
2022-06-23:给定一个非负数组,任意选择数字,使累加和最大且为7的倍数,返回最大累加和。 n比较大,10的5次方。 来自美团。3.26笔试。
5.菜品管理业务开发
Status of the thread pool
uniapp开发微信小程序,显示地图功能,且点击后打开高德或腾讯地图。
SQL Server AVG函数取整问题