Reciprocal#
API#
- class warp_nn.modules.operators.Reciprocal(*, requires_grad: bool = True)[source]#
Bases:
ModuleReciprocal operation.
This class computes the element-wise reciprocal:
\[\text{Reciprocal}(x) = \frac{1}{x}\]- Parameters:
requires_grad – Whether the cached output arrays of the module require gradients.