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
30e051cf
Unverified
Commit
30e051cf
authored
Dec 31, 2021
by
Gustaf Ahdritz
Committed by
GitHub
Dec 31, 2021
Browse files
Add missing cached_weights line
parent
14cce39a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
train_openfold.py
train_openfold.py
+2
-0
No files found.
train_openfold.py
View file @
30e051cf
...
@@ -48,6 +48,8 @@ class OpenFoldWrapper(pl.LightningModule):
...
@@ -48,6 +48,8 @@ class OpenFoldWrapper(pl.LightningModule):
self
.
ema
=
ExponentialMovingAverage
(
self
.
ema
=
ExponentialMovingAverage
(
model
=
self
.
model
,
decay
=
config
.
ema
.
decay
model
=
self
.
model
,
decay
=
config
.
ema
.
decay
)
)
self
.
cached_weights
=
None
def
forward
(
self
,
batch
):
def
forward
(
self
,
batch
):
return
self
.
model
(
batch
)
return
self
.
model
(
batch
)
...
...
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