当前位置:网站首页>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.
边栏推荐
- p5.js千纸鹤动画背景js特效
- SSH Remote Password free login
- SQL sever基本数据类型详解
- SVG+js拖拽滑块圆形进度条
- 买的长期理财产品,可以转短吗?
- ByteDance Interviewer: talk about the principle of audio and video synchronization. Can audio and video be absolutely synchronized?
- Detailed explanation of ThinkPHP 5.0 Model Association
- 保健品一物一码防窜货营销软件开发
- 生产者/消费者模型
- [input method] so far, there are so many Chinese character input methods!
猜你喜欢

indexedDB本地存储,首页优化

How large and medium-sized enterprises build their own monitoring system

Groovy obtains Jenkins credentials through withcredentials

Nvisual digital infrastructure operation management software platform

Impdp leading schema message ora-31625 exception handling

Getting user information for applet learning (getuserprofile and getUserInfo)

Operator details

Wechat applet learning to achieve list rendering and conditional rendering

Basic operations on binary tree

居家办公如何管理数据中心网络基础设施?
随机推荐
Three ways to use applicationcontextinitializer
dedecms模板文件讲解以及首页标签替换
port 22: Connection refused
卷妹带你学jdbc---2天冲刺Day1
JS proxy mode
二叉树第一部分
416-二叉树(前中后序遍历—迭代法)
Use of vim
小程序学习之获取用户信息(getUserProfile and getUserInfo)
Symbol. Iterator iterator
居家办公如何管理数据中心网络基础设施?
SSH Remote Password free login
How to manage massive network infrastructure?
port 22: Connection refused
Desktop software development framework reward
How to standardize data center infrastructure management process
英伟达这篇CVPR 2022 Oral火了!2D图像秒变逼真3D物体!虚拟爵士乐队来了!
416 binary tree (first, middle and last order traversal iteration method)
el-table点击添加行样式
Groovy obtains Jenkins credentials through withcredentials