deepmd.pt.loss.denoise#
Classes#
Helper class that provides a standard way to create an ABC using |
Module Contents#
- class deepmd.pt.loss.denoise.DenoiseLoss(ntypes: int, masked_token_loss: float = 1.0, masked_coord_loss: float = 1.0, norm_loss: float = 0.01, use_l1: bool = True, beta: float = 1.0, mask_loss_coord: bool = True, mask_loss_token: bool = True, **kwargs: Any)[source]#
Bases:
deepmd.pt.loss.loss.TaskLossHelper class that provides a standard way to create an ABC using inheritance.
- forward(model_pred: dict[str, torch.Tensor], label: dict[str, torch.Tensor], natoms: int, learning_rate: float, mae: bool = False) tuple[torch.Tensor, dict[str, torch.Tensor]][source]#
Return loss on coord and type denoise.
- Returns:
- loss:
Losstominimize.
- loss: