Skip to content

Commit

Permalink
Add force to unittest of JIT (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
zasdfgbnm authored and farhadrgh committed Oct 9, 2019
1 parent a1adceb commit 273c9fd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_forces.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,12 @@ def testPadding(self):
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()

0 comments on commit 273c9fd

Please sign in to comment.