PyTorch · Function
F.relu
torch.nn.functional.relu applies the rectified linear unit element by element. It returns a Tensor and can optionally operate in place.
Last updated
Syntax
torch.nn.functional.relu(input, inplace=False) → TensorIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
ReLUtorch.nn.functional