fn
lp_normalize_op
→TensorImplPtrint lp_normalize_op(const int & x, double ord, int axis, double eps)Public free-function entry point for Lp normalisation.
Thin wrapper that delegates to LpNormalizeBackward::forward.
This is the symbol the pybind11 binding layer forwards to from
lucid.nn.functional.normalize.
See Also
LpNormalizeBackward : Autograd node implementing the forward + backward.
Parameters
xTensorImplPtrInput tensor of any shape.
orddoubleNorm order .
axisintAxis along which to compute the norm (negative allowed).
epsdoubleMinimum allowed denominator.
Returns
TensorImplPtrNormalised output, same shape as x.