当前位置:网站首页>tf.errors
tf.errors
2022-06-24 09:40:00 【Wanderer001】
目录
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、函数
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
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.
边栏推荐
- How do novices choose the grade of investment and financial products?
- Endgame P.O.O
- js代理模式
- 二叉树第一部分
- Jcim | AI based protein structure prediction in drug discovery: impacts and challenges
- SQL statistics of users logged in for N consecutive days
- YOLOv6:又快又准的目标检测框架开源啦
- 413-二叉树基础
- How does home office manage the data center network infrastructure?
- Detailed explanation of PHP singleton mode
猜你喜欢

Record the range of data that MySQL update will lock

保健品一物一码防窜货营销软件开发

canvas 绘制图片

canvas无限扫描js特效代码

411-栈和队列(20. 有效的括号、1047. 删除字符串中的所有相邻重复项、150. 逆波兰表达式求值、239. 滑动窗口最大值、347. 前 K 个高频元素)

植物生长h5动画js特效

有关二叉树 的基本操作

How to improve the efficiency of network infrastructure troubleshooting and bid farewell to data blackouts?

CVPR 2022 oral | NVIDIA proposes an efficient visual transformer network a-vit with adaptive token. The calculation of unimportant tokens can be stopped in advance

Indexeddb local storage, homepage optimization
随机推荐
What are the characteristics of EDI local deployment and cloud hosting solutions?
LeetCode: 137. Number II that appears only once
Programming questions (continuously updated)
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
分布式 | 如何与 DBLE 进行“秘密通话”
操作符详解
How does home office manage the data center network infrastructure?
一群骷髅在飞canvas动画js特效
SQL Sever关于like操作符(包括字段数据自动填充空格问题)
p5.js千纸鹤动画背景js特效
机器学习——感知机及K近邻
请问有国内靠谱低手续费的期货开户渠道吗?网上开户安全吗?
416-二叉树(前中后序遍历—迭代法)
ByteDance Interviewer: talk about the principle of audio and video synchronization. Can audio and video be absolutely synchronized?
新手怎么选择投资理财产品的等级?
编程题(持续更新)
有关二叉树 的基本操作
SQL Sever中的窗口函数row_number()rank()dense_rank()
Observer mode
Distributed | how to make "secret calls" with dble