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
ceb95303
Commit
ceb95303
authored
Jun 14, 2022
by
Gustaf Ahdritz
Browse files
Remove removed function call
parent
82e02065
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
openfold/model/model.py
openfold/model/model.py
+1
-2
No files found.
openfold/model/model.py
View file @
ceb95303
...
@@ -434,7 +434,7 @@ class AlphaFold(nn.Module):
...
@@ -434,7 +434,7 @@ class AlphaFold(nn.Module):
# Main recycling loop
# Main recycling loop
num_iters
=
batch
[
"aatype"
].
shape
[
-
1
]
num_iters
=
batch
[
"aatype"
].
shape
[
-
1
]
for
cycle_no
in
range
(
num_iters
):
for
cycle_no
in
range
(
num_iters
):
# Select the features for the current recycling cycle
# Select the features for the current recycling cycle
fetch_cur_batch
=
lambda
t
:
t
[...,
cycle_no
]
fetch_cur_batch
=
lambda
t
:
t
[...,
cycle_no
]
feats
=
tensor_tree_map
(
fetch_cur_batch
,
batch
)
feats
=
tensor_tree_map
(
fetch_cur_batch
,
batch
)
...
@@ -443,7 +443,6 @@ class AlphaFold(nn.Module):
...
@@ -443,7 +443,6 @@ class AlphaFold(nn.Module):
is_final_iter
=
cycle_no
==
(
num_iters
-
1
)
is_final_iter
=
cycle_no
==
(
num_iters
-
1
)
with
torch
.
set_grad_enabled
(
is_grad_enabled
and
is_final_iter
):
with
torch
.
set_grad_enabled
(
is_grad_enabled
and
is_final_iter
):
if
is_final_iter
:
if
is_final_iter
:
self
.
_enable_activation_checkpointing
()
# Sidestep AMP bug (PyTorch issue #65766)
# Sidestep AMP bug (PyTorch issue #65766)
if
torch
.
is_autocast_enabled
():
if
torch
.
is_autocast_enabled
():
torch
.
clear_autocast_cache
()
torch
.
clear_autocast_cache
()
...
...
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