Implementing kernel
C++ engine symbols that back this Python API.In-place ReLU — input is overwritten with max(0, input).
Backed by the engine's native in-place ReLU kernel when no autograd graph has to be extended (no temporary buffer).
Parameters
inputTensorInput; modified in place and also returned.
inplacebool= TrueFalse returns relu's fresh result instead. Default True.Returns
TensorThe same input tensor, now holding max(0, input).