Skip to content

Commit

Permalink
fix the jit compile for radial
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyes319 committed Jan 15, 2025
1 parent badc690 commit 83bfd9d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mace/modules/radial.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ def __init__(self, r_max: float, p=6):
def forward(self, x: torch.Tensor) -> torch.Tensor:
return self.calculate_envelope(x, self.r_max, self.p.to(torch.int))

@staticmethod
def calculate_envelope(
x: torch.Tensor, r_max: torch.Tensor, p: torch.Tensor
) -> torch.Tensor:
Expand Down

0 comments on commit 83bfd9d

Please sign in to comment.