Commit 273c9fd6 authored by Gao, Xiang's avatar Gao, Xiang Committed by Farhad Ramezanghorbani
Browse files

Add force to unittest of JIT (#326)

parent a1adceb0
......@@ -67,5 +67,12 @@ class TestForce(unittest.TestCase):
self.assertLess(max_diff, self.tolerance)
class TestForceJIT(TestForce):
def setUp(self):
super().setUp()
self.model = torch.jit.script(self.model)
if __name__ == '__main__':
unittest.main()
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