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