relu¶
Rectified linear unit, max(x, 0).
Category: activation · Identity: relu@1
Shape¶
| Port | Direction | Pattern | dtype |
|---|---|---|---|
x |
input | x[B, ...] |
compute |
out |
output | out[B, ...] |
compute |
Arguments¶
This operator takes no scalar arguments.
Description¶
Out-of-place ReLU; shared branches are never mutated.
Examples¶
Example 1¶
Input ['B', 128] → output ['B', 10].
Network: [B, 128] -> [B, 10] dtype=float32
index name operation input shape output shape
0 n0 linear [B, 128] [B, 64]
1 n1 relu [B, 64] [B, 64]
2 n2 linear [B, 64] [B, 10]
Parameters: 8,906