Skip to content

Commit

Permalink
attach wigner.
Browse files Browse the repository at this point in the history
  • Loading branch information
kyonofx committed Jul 22, 2024
1 parent 812440a commit f3319b8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/fairchem/core/models/equiformer_v2/so3.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,8 +453,6 @@ def set_wigner(self, rot_mat3x3):
self.device, self.dtype = rot_mat3x3.device, rot_mat3x3.dtype
self.wigner = self.RotationToWignerDMatrix(rot_mat3x3, 0, self.lmax)
self.wigner_inv = torch.transpose(self.wigner, 1, 2).contiguous()
self.wigner = self.wigner.detach()
self.wigner_inv = self.wigner_inv.detach()

# Rotate the embedding
def rotate(self, embedding, out_lmax: int, out_mmax: int):
Expand Down Expand Up @@ -494,7 +492,7 @@ def RotationToWignerDMatrix(
wigner[:, start:end, start:end] = block
start = end

return wigner.detach()
return wigner


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

0 comments on commit f3319b8

Please sign in to comment.