Skip to content

Commit

Permalink
bugfix: Undo Change to VecMag (#52)
Browse files Browse the repository at this point in the history
Introduced due to a mistake made by git in merging excited state nodes and examples
  • Loading branch information
bnebgen-LANL committed Jan 8, 2024
1 parent 179c45d commit 047ef44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hippynn/layers/physics.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def forward(self, features, species):

class VecMag(torch.nn.Module):
def forward(self, vector_feature):
return torch.norm(vector_feature, dim=1).unsqueeze(1)
return torch.norm(vector_feature, dim=1)


class CombineEnergy(torch.nn.Module):
Expand Down

0 comments on commit 047ef44

Please sign in to comment.