mixmo.core.loss.get_loss

mixmo.core.loss.get_loss(config_loss, device=None, config_args=None)[source]

Construct loss object, wrapped if there are multiple losses