# tf.nn.relu_layer

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/ops/nn_impl.py#L479-L499) |

Computes Relu(x \* weight + biases).

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.nn.relu_layer`](https://www.tensorflow.org/api_docs/python/tf/compat/v1/nn/relu_layer)

<br />

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

<br />

<br />

<br />

| ## Args ||
|---|---|
| `x` | a 2D tensor. Dimensions typically: batch, in_units |
| `weights` | a 2D tensor. Dimensions typically: in_units, out_units |
| `biases` | a 1D tensor. Dimensions: out_units |
| `name` | A name for the operation (optional). If not specified "nn_relu_layer" is used. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A 2-D Tensor computing relu(matmul(x, weights) + biases). Dimensions typically: batch, out_units. ||

<br />