BatchMixin¶
- class BatchMixin(batch_size: int)[source]¶
Bases:
objectMixin for modules with batch-size dependent parameters or buffers.
Attributes which have are registered as constrained this way will have a constraint on their 0th dimension equal to the batch size placed.
- Parameters:
batch_size (int) – initial batch size.