Skip to content

Commit 83bfd9d

Browse files
committed
fix the jit compile for radial
1 parent badc690 commit 83bfd9d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mace/modules/radial.py

+1
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ def __init__(self, r_max: float, p=6):
129129
def forward(self, x: torch.Tensor) -> torch.Tensor:
130130
return self.calculate_envelope(x, self.r_max, self.p.to(torch.int))
131131

132+
@staticmethod
132133
def calculate_envelope(
133134
x: torch.Tensor, r_max: torch.Tensor, p: torch.Tensor
134135
) -> torch.Tensor:

0 commit comments

Comments
 (0)