TensorFlow函數(shù)教程:tf.nn.relu_layer

2019-01-31 13:52 更新

tf.nn.relu_layer函數(shù)

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

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

計算Relu(x * weight + biases).

參數(shù):

  • 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.

以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號