Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
OpenFold
Commits
9a8910f9
Commit
9a8910f9
authored
Apr 13, 2022
by
Gustaf Ahdritz
Browse files
Remove exception for num_recycle=0
parent
e310bba4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
openfold/model/model.py
openfold/model/model.py
+4
-3
No files found.
openfold/model/model.py
View file @
9a8910f9
...
...
@@ -239,9 +239,10 @@ class AlphaFold(nn.Module):
# altogether. We zero them this way instead of computing them
# conditionally to avoid leaving parameters unused, which has annoying
# implications for DDP training.
if
(
not
_recycle
):
m_1_prev_emb
*=
0
z_prev_emb
*=
0
# EDIT: This has since been removed from the official codebase (2cd61a)
# if(not _recycle):
# m_1_prev_emb *= 0
# z_prev_emb *= 0
# [*, S_c, N, C_m]
m
[...,
0
,
:,
:]
+=
m_1_prev_emb
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment