Skip to content

Commit 237344a

Browse files
committed
test
1 parent 6e5b8b4 commit 237344a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

py/torch_tensorrt/dynamo/conversion/impl/unsqueeze.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import List, Optional, Sequence
1+
from typing import List, Optional, Sequence, cast
22

33
from torch.fx.node import Target
44
from torch_tensorrt.dynamo._SourceIR import SourceIR
@@ -41,6 +41,8 @@ def unsqueeze_old(
4141
"of the TensorRT region!"
4242
)
4343

44+
dim = cast(int, dim)
45+
4446
input_shape_size = len(input_val.shape)
4547
dim = get_positive_dim(dim, input_shape_size + 1)
4648

0 commit comments

Comments
 (0)