Skip to content

Commit

Permalink
fix type in calculate_envelope
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyes319 committed Jan 15, 2025
1 parent c7c0229 commit badc690
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mace/modules/radial.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,8 @@ 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: int
x: torch.Tensor, r_max: torch.Tensor, p: torch.Tensor
) -> torch.Tensor:
r_over_r_max = x / r_max
envelope = (
Expand Down

0 comments on commit badc690

Please sign in to comment.