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
700fe8fe
Commit
700fe8fe
authored
Feb 04, 2023
by
Gustaf Ahdritz
Browse files
Remove print statements
parent
63293890
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
9 deletions
+0
-9
tests/test_model.py
tests/test_model.py
+0
-2
tests/test_outer_product_mean.py
tests/test_outer_product_mean.py
+0
-3
tests/test_template.py
tests/test_template.py
+0
-2
tests/test_triangular_attention.py
tests/test_triangular_attention.py
+0
-2
No files found.
tests/test_model.py
View file @
700fe8fe
...
...
@@ -130,6 +130,4 @@ class TestModel(unittest.TestCase):
out_repro
=
out_repro
[
"sm"
][
"positions"
][
-
1
]
out_repro
=
out_repro
.
squeeze
(
0
)
print
(
torch
.
mean
(
torch
.
abs
(
out_gt
-
out_repro
)))
print
(
torch
.
max
(
torch
.
abs
(
out_gt
-
out_repro
)))
self
.
assertTrue
(
torch
.
max
(
torch
.
abs
(
out_gt
-
out_repro
))
<
1e-3
)
tests/test_outer_product_mean.py
View file @
700fe8fe
...
...
@@ -90,9 +90,6 @@ class TestOuterProductMean(unittest.TestCase):
.
cpu
()
)
print
(
torch
.
mean
(
torch
.
abs
(
out_gt
-
out_repro
)))
print
(
torch
.
max
(
torch
.
abs
(
out_gt
-
out_repro
)))
# Even when correct, OPM has large, precision-related errors. It gets
# a special pass from consts.eps.
self
.
assertTrue
(
torch
.
max
(
torch
.
abs
(
out_gt
-
out_repro
))
<
5e-4
)
...
...
tests/test_template.py
View file @
700fe8fe
...
...
@@ -139,8 +139,6 @@ class TestTemplatePairStack(unittest.TestCase):
_mask_trans
=
False
,
).
cpu
()
print
(
torch
.
max
(
torch
.
abs
(
out_gt
-
out_repro
)))
print
(
torch
.
mean
(
torch
.
abs
(
out_gt
-
out_repro
)))
self
.
assertTrue
(
torch
.
max
(
torch
.
abs
(
out_gt
-
out_repro
))
<
consts
.
eps
)
...
...
tests/test_triangular_attention.py
View file @
700fe8fe
...
...
@@ -102,8 +102,6 @@ class TestTriangularAttention(unittest.TestCase):
chunk_size
=
None
,
).
cpu
()
print
(
torch
.
mean
(
torch
.
abs
(
out_gt
-
out_repro
)))
print
(
consts
.
eps
)
self
.
assertTrue
(
torch
.
mean
(
torch
.
abs
(
out_gt
-
out_repro
))
<
consts
.
eps
)
@
compare_utils
.
skip_unless_alphafold_installed
()
...
...
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