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
410e1829
Unverified
Commit
410e1829
authored
Aug 09, 2023
by
Gustaf Ahdritz
Committed by
GitHub
Aug 09, 2023
Browse files
Fix another seeding bug
parent
451642c8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
openfold/data/input_pipeline.py
openfold/data/input_pipeline.py
+2
-1
No files found.
openfold/data/input_pipeline.py
View file @
410e1829
...
...
@@ -14,6 +14,7 @@
# limitations under the License.
from
functools
import
partial
import
random
import
torch
...
...
@@ -153,7 +154,7 @@ def ensembled_transform_fns(common_cfg, mode_cfg, ensemble_seed):
def
process_tensors_from_config
(
tensors
,
common_cfg
,
mode_cfg
):
"""Based on the config, apply filters and transformations to the data."""
ensemble_seed
=
torch
.
Generator
().
seed
(
)
ensemble_seed
=
random
.
randint
(
0
,
2147483647
)
def
wrap_ensemble_fn
(
data
,
i
):
"""Function to be mapped over the ensemble dimension."""
...
...
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