Skip to content

Commit f503b61

Browse files
committed
changing the data type in interpretor setting
1 parent 578c1f6 commit f503b61

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/py/dynamo/conversion/harness.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def run_test_comparator(
273273
inputs,
274274
expected_ops,
275275
comparators: List[Tuple[Callable, List]],
276-
precision=torch.float32,
276+
precision=torch.float,
277277
output_dtypes=None,
278278
use_dynamo_tracer=False,
279279
enable_passes=False,

tests/py/dynamo/conversion/test_rand_aten.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def forward(self, x):
121121
x.dtype == y.dtype if check_dtype else True
122122
)
123123
expected_ops = []
124-
# TRT-np returns int32 while torch returns float32
124+
# TRT-TRT returns int32 while torch returns int64
125125
self.run_test_comparator(
126126
rand_model,
127127
inputs,

0 commit comments

Comments
 (0)