PyTorch · Function
torch.relu
torch.relu_ applies ReLU to a tensor in place. Negative values become zero, while nonnegative values stay unchanged.
Last updated
Syntax
torch.relu_(input)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
torch.relutorch.nn.ReLU