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
8184691b
Commit
8184691b
authored
Jul 20, 2022
by
Gustaf Ahdritz
Browse files
Change seeding
parent
47fccce1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
openfold/data/data_modules.py
openfold/data/data_modules.py
+1
-3
No files found.
openfold/data/data_modules.py
View file @
8184691b
...
...
@@ -630,9 +630,7 @@ class OpenFoldDataModule(pl.LightningDataModule):
if
(
self
.
batch_seed
is
not
None
):
generator
=
torch
.
Generator
()
# A standin for the rank, which I don't know how to get
pid
=
os
.
getpid
()
%
10000
generator
=
generator
.
manual_seed
(
self
.
batch_seed
+
pid
)
generator
=
generator
.
manual_seed
(
self
.
batch_seed
+
1
)
self
.
train_dataset
=
OpenFoldDataset
(
datasets
=
datasets
,
...
...
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