codecamp

TensorFlow函数教程:tf.nn.quantized_relu_x

tf.nn.quantized_relu_x函数

tf.nn.quantized_relu_x(
    features,
    max_value,
    min_features,
    max_features,
    out_type=tf.quint8,
    name=None
)

请参阅指南:神经网络>候选采样

计算量化校正线性X: min(max(features, 0), max_value)

参数:

  • features:一个Tensor,必须是下列类型之一:qint8,quint8,qint32,qint16,quint16.
  • max_value:一个Tensor,类型为float32.
  • min_features:一个Tensor,类型为float32.最小量化值表示的浮点值.
  • max_features:一个Tensor,类型为float32.最大量化值表示的浮点值.
  • out_type:可选的tf.DType,可以是:tf.qint8, tf.quint8, tf.qint32, tf.qint16, tf.quint16.默认为tf.quint8.
  • name:操作的名称(可选).

返回:

Tensor对象的元组(activations, min_activations, max_activations).

  • activations:一个Tensor,类型为out_type.
  • min_activations:一个Tensor,类型为float32.
  • max_activations:一个Tensor,类型为float32.
TensorFlow函数教程:tf.nn.quantized_max_pool
TensorFlow函数教程:tf.nn.relu
温馨提示
下载编程狮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; }