Custom loss functions with AutoGen
When creating custom losses, you might encounter compilation failures. To address this, wrap your custom loss class with the @autogen_loss decorator, which enables AutoGen to handle the compilation of these custom losses efficiently.Improving loss function performance
Enable autogen to use fused autogenerated graphs for losses in PyTorch, enhancing performance. Setuse_autogen = True
when defining your loss: