codecamp

TensorFlow的errors模块总览

tf.errors

定义在:tensorflow/python/framework/errors.py

TensorFlow 错误的异常类型.

errors 模块的类

class AbortedError:操作已中止,通常是由于并发操作.

class AlreadyExistsError:当我们尝试创建的实体已经存在时触发.

class CancelledError:取消操作或步骤时提起.

class DataLossError:遇到不可恢复的数据丢失或损坏时引发的.

class DeadlineExceededError:在行动完成之前期限到期时提起.

class FailedPreconditionError:操作被拒绝,因为系统不处于执行状态.

class InternalError:系统遇到内部错误时提起.

class InvalidArgumentError:当操作收到无效参数时触发.

class NotFoundError:当未找到请求实体(例如,文件或目录)时引发.

class OpError:当TensorFlow执行失败时引发的一般错误.

class OutOfRangeError:当操作迭代超过有效输入范围时引发.

class PermissionDeniedError:当调用者没有运行操作的权限时引发.

class ResourceExhaustedError:一些资源已经用完了.

class UnauthenticatedError:请求没有有效的身份验证凭据.

class UnavailableError:当运行时当前不可用时引发.

class UnimplementedError:当一个操作没有被执行时提起.

class UnknownError:未知错误

errors 模块的功能

error_code_from_exception_type(...)

exception_type_from_error_code(...)

raise_exception_on_not_ok_status(...)

errors 模块的其他成员

  • 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


包含TFRecord文件记录的数据集
TensorFlow操作被中止
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

TensorFlow 函数介绍

TensorFlow 函数模块:tf

TensorFlow的image模块

TensorFlow使用之tf.io

TensorFlow使用之tf.keras

TensorFlow函数教程:tf.keras.applications

TensorFlow函数教程:tf.keras.backend

TensorFlow使用之tf.metrics

TensorFlow使用之tf.nn

TensorFlow使用之tf.python_io

TensorFlow 功能函数

关闭

MIP.setData({ 'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false}, 'pageFontSize' : getCookie('pageFontSize') || 20 }); MIP.watch('pageTheme', function(newValue){ setCookie('pageTheme', JSON.stringify(newValue)) }); MIP.watch('pageFontSize', function(newValue){ setCookie('pageFontSize', newValue) }); function setCookie(name, value){ var days = 1; var exp = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + '=' + value + ';expires=' + exp.toUTCString(); } function getCookie(name){ var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null; }