mmlearn.tasks.contrastive_pretraining.AuxiliaryTaskSpec¶
- class AuxiliaryTaskSpec(modality, task, loss_weight=1.0)[source]¶
Bases:
object
Specification for an auxiliary task to run alongside the main task.
Methods
Attributes
-
task:
Any
¶ The auxiliary task module. This is expected to be a partially-initialized instance of a
LightningModule
created usingfunctools.partial()
, such that an initialized encoder can be passed as the only argument.
-
task: