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
bf3eed6e
Commit
bf3eed6e
authored
Oct 20, 2021
by
Gustaf Ahdritz
Browse files
Remove dependency on training-time feature
parent
267b1bfd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
openfold/model/model.py
openfold/model/model.py
+3
-2
No files found.
openfold/model/model.py
View file @
bf3eed6e
...
...
@@ -169,7 +169,7 @@ class AlphaFold(nn.Module):
return
ret
def
iteration
(
self
,
feats
,
m_1_prev
,
z_prev
,
x_prev
):
def
iteration
(
self
,
feats
,
m_1_prev
,
z_prev
,
x_prev
,
_recycle
=
True
):
# Establish constants
chunk_size
=
(
self
.
globals
.
train_chunk_size
...
...
@@ -202,7 +202,7 @@ class AlphaFold(nn.Module):
)
# Inject information from previous recycling iterations
if
feats
[
"no_recycling_iters"
]
>
0
:
if
_recycle
is
True
:
# Initialize the recycling embeddings, if needs be
if
None
in
[
m_1_prev
,
z_prev
,
x_prev
]:
# [*, N, C_m]
...
...
@@ -420,6 +420,7 @@ class AlphaFold(nn.Module):
m_1_prev
,
z_prev
,
x_prev
,
_recycle
=
(
num_iters
>
1
)
)
# Run auxiliary heads
...
...
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