TensorFlow函数教程:tf.nn.relu_layer

2019-01-31 13:52 更新

tf.nn.relu_layer函数

tf.nn.relu_layer(
    x,
    weights,
    biases,
    name=None
)

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

计算Relu(x * weight + biases).

参数:

  • x:2D张量.维度通常为:batch,in_units
  • weights:2D张量.维度通常为:in_units,out_units
  • biases:1D张量.维度为:out_units
  • name:操作的名称(可选).如果未指定,则使用“nn_relu_layer”.

返回:

2-D Tensor,用于计算relu(matmul(x, weights) + biases).维度通常为:batch,out_units.

以上内容是否对您有帮助:
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号