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
857e9b7c
Commit
857e9b7c
authored
Apr 13, 2022
by
Gustaf Ahdritz
Browse files
Fix evoformer paths in some old tests
parent
9a8910f9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
tests/test_import_weights.py
tests/test_import_weights.py
+1
-1
tests/test_outer_product_mean.py
tests/test_outer_product_mean.py
+1
-1
tests/test_pair_transition.py
tests/test_pair_transition.py
+1
-1
No files found.
tests/test_import_weights.py
View file @
857e9b7c
...
@@ -65,7 +65,7 @@ class TestImportWeights(unittest.TestCase):
...
@@ -65,7 +65,7 @@ class TestImportWeights(unittest.TestCase):
)
)
][
1
].
transpose
(
-
1
,
-
2
)
][
1
].
transpose
(
-
1
,
-
2
)
),
),
model
.
evoformer
.
blocks
[
1
].
outer_product_mean
.
linear_1
.
weight
,
model
.
evoformer
.
blocks
[
1
].
core
.
outer_product_mean
.
linear_1
.
weight
,
),
),
]
]
...
...
tests/test_outer_product_mean.py
View file @
857e9b7c
...
@@ -81,7 +81,7 @@ class TestOuterProductMean(unittest.TestCase):
...
@@ -81,7 +81,7 @@ class TestOuterProductMean(unittest.TestCase):
model
=
compare_utils
.
get_global_pretrained_openfold
()
model
=
compare_utils
.
get_global_pretrained_openfold
()
out_repro
=
(
out_repro
=
(
model
.
evoformer
.
blocks
[
0
]
model
.
evoformer
.
blocks
[
0
]
.
core
.
outer_product_mean
(
.
outer_product_mean
(
torch
.
as_tensor
(
msa_act
).
cuda
(),
torch
.
as_tensor
(
msa_act
).
cuda
(),
chunk_size
=
4
,
chunk_size
=
4
,
...
...
tests/test_pair_transition.py
View file @
857e9b7c
...
@@ -76,7 +76,7 @@ class TestPairTransition(unittest.TestCase):
...
@@ -76,7 +76,7 @@ class TestPairTransition(unittest.TestCase):
model
=
compare_utils
.
get_global_pretrained_openfold
()
model
=
compare_utils
.
get_global_pretrained_openfold
()
out_repro
=
(
out_repro
=
(
model
.
evoformer
.
blocks
[
0
]
model
.
evoformer
.
blocks
[
0
]
.
core
.
pair_transition
(
.
pair_transition
(
torch
.
as_tensor
(
pair_act
,
dtype
=
torch
.
float32
).
cuda
(),
torch
.
as_tensor
(
pair_act
,
dtype
=
torch
.
float32
).
cuda
(),
chunk_size
=
4
,
chunk_size
=
4
,
...
...
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