Skip to content

Commit

Permalink
Removing the int64 casting to int32 in harness.py since native int64 …
Browse files Browse the repository at this point in the history
…in supported in TRT10
  • Loading branch information
apbose committed May 6, 2024
1 parent 6afbb8d commit 9ca3f62
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/py/dynamo/conversion/harness.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,10 +247,8 @@ def run_test(
trt_inputs = inputs
for num_input in range(num_inputs):
input = inputs[num_input]
if input.dtype in (torch.int64, torch.float64):
dtype_32bit = (
torch.int32 if (input.dtype == torch.int64) else torch.float32
)
if input.dtype in (torch.float64):
dtype_32bit = torch.float32
# should we modify graph here to insert clone nodes?
# ideally not required
trt_inputs = (
Expand Down

0 comments on commit 9ca3f62

Please sign in to comment.