We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc57c78 commit d5bf99cCopy full SHA for d5bf99c
mace/modules/loss.py
@@ -673,14 +673,14 @@ def forward(
673
ref.forces_weight, num_atoms
674
).unsqueeze(-1)
675
configs_polarization_weight = (
676
- ref.polarization_weight.view(-1, 3) / 5.526349e-3
677
- ) # divide by eps_0
+ ref.polarization_weight.view(-1, 3)
+ )
678
configs_becs_weight = torch.repeat_interleave(
679
ref.becs_weight,
680
num_atoms,
681
dim=0,
682
).view(-1, 3, 3)
683
- configs_polarizability_weight = ref.polarizability_weight.view(-1, 3, 3)
+ configs_polarizability_weight = ref.polarizability_weight.view(-1, 3, 3) / 5.526349e-3 # divide by eps_0
684
_, fractional_difference = fold_polarization(
685
pred["polarization"], ref["polarization"], ref["cell"]
686
)
0 commit comments