pytorch / 2 / generated / torch.nn.functional.relu.html

torch.nn.functional.relu

torch.nn.functional.relu(input, inplace=False) → Tensor [source]

Applies the rectified linear unit function element-wise. See ReLU for more details.

Return type

Tensor

© 2024, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://pytorch.org/docs/2.1/generated/torch.nn.functional.relu.html