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
29f2ffe0
Commit
29f2ffe0
authored
Jun 14, 2022
by
Gustaf Ahdritz
Browse files
Fix another chunk tuning bug
parent
b84dd8cb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
openfold/utils/tensor_utils.py
openfold/utils/tensor_utils.py
+3
-3
No files found.
openfold/utils/tensor_utils.py
View file @
29f2ffe0
...
...
@@ -474,9 +474,9 @@ class ChunkSizeTuner:
# If args have changed shape/value, we need to re-tune
assert
(
len
(
self
.
cached_arg_data
)
==
len
(
arg_data
))
arg_data_iter
=
zip
(
self
.
cached_arg_data
,
arg_data
)
for
cached_arg_dat
a
,
arg_dat
a
in
arg_data_iter
:
assert
(
type
(
cached_arg_dat
a
)
==
type
(
arg_dat
a
))
consistent
=
cached_arg_dat
a
==
arg_dat
a
for
cached_arg_dat
um
,
arg_dat
um
in
arg_data_iter
:
assert
(
type
(
cached_arg_dat
um
)
==
type
(
arg_dat
um
))
consistent
=
cached_arg_dat
um
==
arg_dat
um
else
:
# Otherwise, we can reuse the precomputed value
consistent
=
False
...
...
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