Class BatchNorm1dImpl¶
Defined in File batchnorm.h
Page Contents
Inheritance Relationships¶
Base Type¶
public torch::nn::BatchNormImplBase< 1, BatchNorm1dImpl >
(Template Class BatchNormImplBase)
Class Documentation¶
-
class BatchNorm1dImpl : public torch::nn::BatchNormImplBase<1, BatchNorm1dImpl>¶
Applies the BatchNorm1d function.
See https://pytorch.org/docs/main/nn.html#torch.nn.BatchNorm1d to learn about the exact behavior of this module.
See the documentation for
torch::nn::BatchNorm1dOptions
class to learn what constructor arguments are supported for this module.Example:
BatchNorm1d model(BatchNorm1dOptions(4).eps(0.5).momentum(0.1).affine(false).track_running_stats(true));
Protected Functions
-
virtual void _check_input_dim(const Tensor &input) override¶
-
virtual void _check_input_dim(const Tensor &input) override¶