3 #include <torch/nn/cloneable.h> 4 #include <torch/nn/pimpl.h> 5 #include <torch/types.h> 17 TORCH_ARG(int64_t, features);
21 TORCH_ARG(
bool, affine) =
true;
26 TORCH_ARG(
bool, stateful) =
true;
29 TORCH_ARG(
double, eps) = 1e-5;
32 TORCH_ARG(
double, momentum) = 0.1;
54 void reset()
override;
57 void pretty_print(std::ostream& stream)
const override;
98 TORCH_MODULE(BatchNorm);
Tensor bias
The learned bias.
Tensor running_var
The running variance.
Tensor running_mean
The running mean.
Applies Batch Normalization to an input.
BatchNormOptions options
The options with which this module was constructed.
The clone() method in the base Module class does not have knowledge of the concrete runtime type of i...
Options for the BatchNorm module.
Tensor weight
The learned weight.