Skip to content

Commit 700fe8f

Browse files
committed
Remove print statements
1 parent 6329389 commit 700fe8f

File tree

4 files changed

+0
-9
lines changed

4 files changed

+0
-9
lines changed

tests/test_model.py

-2
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,4 @@ def run_alphafold(batch):
130130
out_repro = out_repro["sm"]["positions"][-1]
131131
out_repro = out_repro.squeeze(0)
132132

133-
print(torch.mean(torch.abs(out_gt - out_repro)))
134-
print(torch.max(torch.abs(out_gt - out_repro)))
135133
self.assertTrue(torch.max(torch.abs(out_gt - out_repro)) < 1e-3)

tests/test_outer_product_mean.py

-3
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,6 @@ def run_opm(msa_act, msa_mask):
9090
.cpu()
9191
)
9292

93-
print(torch.mean(torch.abs(out_gt - out_repro)))
94-
print(torch.max(torch.abs(out_gt - out_repro)))
95-
9693
# Even when correct, OPM has large, precision-related errors. It gets
9794
# a special pass from consts.eps.
9895
self.assertTrue(torch.max(torch.abs(out_gt - out_repro)) < 5e-4)

tests/test_template.py

-2
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,6 @@ def run_template_pair_stack(pair_act, pair_mask):
139139
_mask_trans=False,
140140
).cpu()
141141

142-
print(torch.max(torch.abs(out_gt - out_repro)))
143-
print(torch.mean(torch.abs(out_gt - out_repro)))
144142
self.assertTrue(torch.max(torch.abs(out_gt - out_repro)) < consts.eps)
145143

146144

tests/test_triangular_attention.py

-2
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@ def run_tri_att(pair_act, pair_mask):
102102
chunk_size=None,
103103
).cpu()
104104

105-
print(torch.mean(torch.abs(out_gt - out_repro)))
106-
print(consts.eps)
107105
self.assertTrue(torch.mean(torch.abs(out_gt - out_repro)) < consts.eps)
108106

109107
@compare_utils.skip_unless_alphafold_installed()

0 commit comments

Comments
 (0)