首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >tf.errors

tf.errors

作者头像
狼啸风云
修改2022-09-03 20:19:27
修改2022-09-03 20:19:27
8780
举报

目录

一、总述

1、类

2、函数

3、Other Members

二、重要的类

1、类OutOfRangeError

TensorFlow错误的异常类型。

一、总述

1、类

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 Operation that failed, or None.

Methods

__init__

代码语言:javascript
复制
__init__(
    node_def,
    op,
    message
)

Creates an OutOfRangeError.

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2019/10/29 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 目录
  • 一、总述
    • 1、类
    • 2、函数
    • 3、Other Members
  • 二、重要的类
    • 1、类OutOfRangeError
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档