nvalchemi-loss-api
Installation
SKILL.md
nvalchemi Loss API
Overview
Loss functions are torch.nn.Module subclasses rooted at BaseLossFunction.
Each leaf consumes (pred, target, **kwargs) and returns a scalar.
ComposedLossFunction routes keyed prediction/target mappings to leaves,
applies per-component weights (float or LossWeightSchedule), and returns
a ComposedLossOutput TypedDict.