LibMTL.weighting.IMTL

class IMTL[source]

Bases: LibMTL.weighting.abstract_weighting.AbsWeighting

Impartial Multi-task Learning (IMTL).

This method is proposed in Towards Impartial Multi-task Learning (ICLR 2021) and implemented by us.

init_param(self)[source]

Define and initialize some trainable parameters required by specific weighting methods.

backward(self, losses, **kwargs)[source]
Parameters
  • losses (list) – A list of losses of each task.

  • kwargs (dict) – A dictionary of hyperparameters of weighting methods.