Skip to content

Commit

Permalink
fix: Added truncate_long_and_double
Browse files Browse the repository at this point in the history
Signed-off-by: Anurag Dixit <[email protected]>
  • Loading branch information
andi4191 committed May 2, 2022
1 parent 3a0640a commit 417c096
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/py/test_ptq_to_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def setUp(self):
"inputs": [torchtrt.Input([1, 3, 32, 32])],
"enabled_precisions": {torch.float, torch.half, torch.int8},
"calibrator": self.calibrator,
"truncate_long_and_double": True,
"device": {
"device_type": torchtrt.DeviceType.GPU,
"gpu_id": 0,
Expand Down
1 change: 1 addition & 0 deletions tests/py/test_ptq_trt_calibrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ def test_compile_script(self):
"inputs": [torchtrt.Input([1, 3, 32, 32])],
"enabled_precisions": {torch.float, torch.int8},
"calibrator": self.calibrator,
"truncate_long_and_double": True,
"device": {
"device_type": torchtrt.DeviceType.GPU,
"gpu_id": 0,
Expand Down
1 change: 1 addition & 0 deletions tests/py/test_trt_intercompatibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def setUp(self):
def test_pt_to_trt(self):
compile_spec = {
"inputs": [torchtrt.Input(self.input.shape)],
"truncate_long_and_double": True,
"device": {
"device_type": torchtrt.DeviceType.GPU,
"gpu_id": 0,
Expand Down

0 comments on commit 417c096

Please sign in to comment.