relu method

Tensor relu()

Element-wise ReLU activation.

Implementation

Tensor relu() => map((x) => x > 0 ? x : 0.0);