codecamp

TensorFlow函数教程:tf.nn.normalize_moments

tf.nn.normalize_moments函数

tf.nn.normalize_moments(
    counts,
    mean_ss,
    variance_ss,
    shift,
    name=None
)

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

请参阅指南:神经网络>规范化

根据足够的统计数据计算均值和方差.

参数:

  • counts:一个Tensor,包含数据的总计数(一个值).
  • mean_ss:一个Tensor,包含均值足够的统计数据:要平均的元素的(可能移位)总和.
  • variance_ss:一个Tensor,包含方差足够的统计数据:用于计算方差的数据的(可能移位)平方和.
  • shift:一个Tensor,包含数据移位以保证数值稳定性的值,或者为None,如果未执行任何移位.
  • name:用于确定计算moment的操作范围的名称.

返回:

两个Tensor对象:mean和variance.

TensorFlow函数教程:tf.nn.nce_loss
TensorFlow函数教程:tf.nn.pool
温馨提示
下载编程狮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; }