tf.compat.v1.nn.relu_layer
Вычисляет Relu(x * weight + biases).
tf.compat.v1.nn.relu_layer(
x, weights, biases, name=None
)
| Аргументы | |
|---|---|
x | двумерный тензор. Типичные измерения: batch, in_units |
weights | двумерный тензор. Типичные измерения: in_units, out_units |
biases | одномерный тензор. Измерение: out_units |
name | Имя операции (необязательно). Если оно не указано, используется "nn_relu_layer". |
| Возвращает | |
|---|---|
| Двумерный тензор, вычисляющий relu(matmul(x, weights) + biases). Типичные измерения: batch, out_units. |
© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/compat/v1/nn/relu_layer