codecamp

InternalError的处理

tf.errors.InternalError

tf.errors.InternalError 类

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

请参阅指南:运行图>错误类和方便功能

系统遇到内部错误时引发.

当运行时预期的一些不变量被破坏时,将引发此异常.不建议使用此异常.

属性

  • error_code
    描述错误的整数错误代码.
  • message
    描述错误的错误消息.
  • node_def
    表示失败的操作的 NodeDef 原型.
  • op
    失败的操作,如果知道的话.
    注意:如果失败的操作在运行时合成,例如 Send 或 Recvop,将不会有相应的 tf.Operation 对象.在这种情况下,这将返回 None,您应该使用 tf.OpError.node_def 来发现关于操作的信息.

返回:

返回失败的操作或者 None.

方法

__init__

__init__ (
node_def ,
op ,
message
)

创建一个 InternalError.


处理FailedPreconditionError
TensorFlow的InvalidArgumentError类
温馨提示
下载编程狮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; }