We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a0f7a5 commit 47fd737Copy full SHA for 47fd737
tests/py/test_api.py
@@ -34,8 +34,14 @@ def test_compile_traced(self):
34
same = (trt_mod(self.input) - self.traced_model(self.input)).abs().max()
35
self.assertTrue(same < 2e-3)
36
37
- #def test_compile_script(self):
38
- # pass
+ def test_compile_script(self):
+ extra_info = {
39
+ "input_shapes": [self.input.shape],
40
+ }
41
+
42
+ trt_mod = trtorch.compile(self.scripted_model, extra_info)
43
+ same = (trt_mod(self.input) - self.scripted_model(self.input)).abs().max()
44
+ self.assertTrue(same < 2e-3)
45
46
class TestCheckMethodOpSupport(unittest.TestCase):
47
def setUp(self):
0 commit comments