Skip to content

Commit

Permalink
Fix for issue #367
Browse files Browse the repository at this point in the history
  • Loading branch information
christinaflo committed Nov 29, 2023
1 parent cdeb8d1 commit 2c36cb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openfold/model/structure_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ def forward(
o_pt_norm = o_pt.norm(epsilon=1e-8)

if (_offload_inference):
z[0] = z[0].to(o_pt.device)
z[0] = z[0].to(o_pt.x.device)

o_pair = torch.einsum('...ijh, ...ijc->...ihc', a, z[0].to(dtype=a.dtype))

Expand Down

0 comments on commit 2c36cb8

Please sign in to comment.