Commit 7e969e48 authored by Geoffrey Yu's avatar Geoffrey Yu
Browse files

change it back to unittest testunit

parent 1e268fd5
...@@ -38,8 +38,8 @@ from openfold.utils.rigid_utils import ( ...@@ -38,8 +38,8 @@ from openfold.utils.rigid_utils import (
Rigid, Rigid,
) )
class TestPermutation: class TestPermutation(unittest.TestCase):
def __init__(self): def setUp(self):
""" """
Firstly setup model configs and model as in Firstly setup model configs and model as in
test_model.py test_model.py
...@@ -137,9 +137,5 @@ class TestPermutation: ...@@ -137,9 +137,5 @@ class TestPermutation:
with torch.no_grad(): with torch.no_grad():
out = model(batch) out = model(batch)
print(f"finished foward on batch with batch_size dim") print(f"finished foward on batch with batch_size dim")
permutated_labels = multimer_loss(out,(batch,example_label)) multimer_loss(out,(batch,example_label))
# print(f"permuated_labels is {type(permutated_labels)} and keys are:\n {permutated_labels.keys()}") # print(f"permuated_labels is {type(permutated_labels)} and keys are:\n {permutated_labels.keys()}")
if __name__ == "__main__":
test = TestPermutation()
test.test_dry_run()
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment