fn
batch_norm1d_op
→TensorImplPtrint batch_norm1d_op(const int & x, const int & gamma, const int & beta, double eps, const int & running_mean, const int & running_var, double momentum)Public entry point for 1-D Batch Normalization.
Applies training-mode batch normalization over the batch and length
axes of a sequence input. This is the symbol the pybind11 binding
layer forwards to from lucid.nn.functional.batch_norm when
the input has rank 3.
See Also
BatchNorm1dBackward : Autograd node implementing the forward + backward. batch_norm_eval_op : Inference-mode counterpart using running stats.
Parameters
xTensorImplPtrInput tensor of shape
(B, C, L).gammaTensorImplPtrPer-channel scale of shape
(C,).betaTensorImplPtrPer-channel shift of shape
(C,).epsdouble= NoneNumerical-stability constant. Default:
1e-5.Returns
TensorImplPtrNormalised output, same shape as x.