ShapeMixin¶
- class ShapeMixin(shape: tuple[int, ...] | int)[source]¶
Bases:
BatchMixinMixin for modules with a concept of shape.
This mixin does not provide options for altering shape, only storing the given shape and offering related properties.
- Parameters:
shape (tuple[int, ...] | int) – shape of the group being represented, excluding batch size.