module_attr_mixin
module_attr_mixin
¶
Mixin for nn.Module device and dtype introspection.
ModuleAttrMixin
¶
Bases: Module
Expose module-level device and dtype properties.
A non-persistent reference buffer lets stateless and lazily initialized
modules track .to(...) calls without adding trainable parameters or
polluting checkpoints.