Skip to content

Commit

Permalink
revert config loss stress
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyes319 committed Aug 23, 2024
1 parent a0b2af3 commit 5e70bfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mace/modules/loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,8 @@ def forward(self, ref: Batch, pred: TensorDict) -> torch.Tensor:
* conditional_huber_forces(ref, pred, huber_delta=self.huber_delta)
+ self.stress_weight
* self.huber_loss(
configs_weight * configs_stress_weight * ref["stress"],
configs_weight * configs_stress_weight * pred["stress"],
ref["stress"],
pred["stress"],
)
)

Expand Down

0 comments on commit 5e70bfe

Please sign in to comment.