Skip to content

Commit 417c096

Browse files
committed
fix: Added truncate_long_and_double
Signed-off-by: Anurag Dixit <[email protected]>
1 parent 3a0640a commit 417c096

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

tests/py/test_ptq_to_backend.py

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ def setUp(self):
4040
"inputs": [torchtrt.Input([1, 3, 32, 32])],
4141
"enabled_precisions": {torch.float, torch.half, torch.int8},
4242
"calibrator": self.calibrator,
43+
"truncate_long_and_double": True,
4344
"device": {
4445
"device_type": torchtrt.DeviceType.GPU,
4546
"gpu_id": 0,

tests/py/test_ptq_trt_calibrator.py

+1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ def test_compile_script(self):
106106
"inputs": [torchtrt.Input([1, 3, 32, 32])],
107107
"enabled_precisions": {torch.float, torch.int8},
108108
"calibrator": self.calibrator,
109+
"truncate_long_and_double": True,
109110
"device": {
110111
"device_type": torchtrt.DeviceType.GPU,
111112
"gpu_id": 0,

tests/py/test_trt_intercompatibility.py

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ def setUp(self):
1616
def test_pt_to_trt(self):
1717
compile_spec = {
1818
"inputs": [torchtrt.Input(self.input.shape)],
19+
"truncate_long_and_double": True,
1920
"device": {
2021
"device_type": torchtrt.DeviceType.GPU,
2122
"gpu_id": 0,

0 commit comments

Comments
 (0)