codecamp

TensorFlow:tf.report_uninitialized_variables函数

tf.report_uninitialized_variables 函数

report_uninitialized_variables(
    var_list=None,
    name='report_uninitialized_variables'
)

定义在:tensorflow/python/ops/variables.py.

请参阅指南:变量>变量帮助函数

该函数用来添加ops以列出未初始化变量的名称.

当运行时,返回包含未初始化变量(如果有)的名称的一维张量,如果没有,则返回一个空数组.

参数:

  • var_list:要检查的Variable对象列表,默认值为:global_variables() + local_variables()
  • name:可选的Operation名称.

返回:

该函数将返回包含未初始化变量名称的一维张量,或者如果没有变量或没有未初始化的变量,则为空的一维张量.

注意:应使用此函数的输出.如果不是,则会记录一个警告.要将输出标记为已使用,请调用其 .mark_used()方法.

TensorFlow函数:将base_type的对象转换为Tensor
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; }