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
Show 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
...
@@ -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