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
"lib/engines/git@developer.sourcefind.cn:OpenDAS/dynamo.git" did not exist on "ceaeba3e3858432fd8b5e696eb6c2c8a64ffd632"
Commit
9a8910f9
authored
Apr 13, 2022
by
Gustaf Ahdritz
Browse files
Remove exception for num_recycle=0
parent
e310bba4
Changes
1
Hide 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):
...
@@ -239,9 +239,10 @@ class AlphaFold(nn.Module):
# altogether. We zero them this way instead of computing them
# altogether. We zero them this way instead of computing them
# conditionally to avoid leaving parameters unused, which has annoying
# conditionally to avoid leaving parameters unused, which has annoying
# implications for DDP training.
# implications for DDP training.
if
(
not
_recycle
):
# EDIT: This has since been removed from the official codebase (2cd61a)
m_1_prev_emb
*=
0
# if(not _recycle):
z_prev_emb
*=
0
# m_1_prev_emb *= 0
# z_prev_emb *= 0
# [*, S_c, N, C_m]
# [*, S_c, N, C_m]
m
[...,
0
,
:,
:]
+=
m_1_prev_emb
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