ModuleWrapperBase¶
- class flash.core.model.ModuleWrapperBase[source]¶
The
ModuleWrapperBaseis a base for classes which wrap aLightningModuleor an instance ofModuleWrapperBase.This class ensures that trainer attributes are forwarded to any wrapped or nested
LightningModuleinstances so that nested calls to.logare handled correctly. TheModuleWrapperBaseis also stateful, meaning that aDataPipelineStatecan be attached. Attached state will be forwarded to any nestedModuleWrapperBaseinstances.