Skip to content

Commit

Permalink
Free used recycling tensors
Browse files Browse the repository at this point in the history
  • Loading branch information
gahdritz committed Nov 18, 2021
1 parent a7e631c commit 326e08d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openfold/model/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def iteration(self, feats, m_1_prev, z_prev, x_prev, _recycle=True):
z = z + z_prev_emb

# Possibly prevents memory fragmentation
del m_1_prev_emb, z_prev_emb
del m_1_prev, z_prev, x_prev, m_1_prev_emb, z_prev_emb

# Embed the templates + merge with MSA/pair embeddings
if self.config.template.enabled:
Expand Down

0 comments on commit 326e08d

Please sign in to comment.