codecamp

TensorFlow操作被中止

tf.errors.AbortedError

tf.errors.AbortedError 类

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

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

操作被中止.

这种情况通常是并发操作的结果.例如,运行一个 tf.QueueBase.enqueue 操作可能会提升 AbortedError 或者在之前已经运行了 tf.QueueBase. close 操作.

属性

  • error_code
    描述 error 的整数错误代码.
  • message
    描述 error 的错误消息.
  • node_def
    NodeDef 原型代表 op 失败了.
  • op
    失败的操作,如果已知.
    如果失败 op 是在运行时合成的,如发送或接收 op,将没有相应的 tf.Operation 对象.在这种情况下,这将返回 None,而您应该改用 tf.OpError.node_def 发现有关 op 的信息.

返回:

返回失败的操作或者为 None.

方法

__init__

__init__ (
node_def ,
op ,
message
)

用来创建一个 AbortedError.

TensorFlow的errors模块总览
TensorFlow处理已存在的error
温馨提示
下载编程狮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; }