We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0aa4e55 commit 651f4c8Copy full SHA for 651f4c8
py/torch_tensorrt/dynamo/conversion/impl/select.py
@@ -188,15 +188,17 @@ def index(
188
)
189
else:
190
dim_tensor_shape_mult_d1 = transpose_tensor_shape[i]
191
- mult_d1 = convert_binary_elementwise(
192
- ctx,
193
- target,
194
- source_ir,
195
- name + f"_shape_{i}",
196
- trt.ElementWiseOperation.PROD,
197
- mult_d1,
198
- dim_tensor_shape_mult_d1,
199
- )
+
+ if isinstance(dim_tensor_shape_mult_d1, TRTTensor):
+ mult_d1 = convert_binary_elementwise(
+ ctx,
+ target,
+ source_ir,
+ name + f"_shape_{i}",
+ trt.ElementWiseOperation.PROD,
+ mult_d1,
200
+ dim_tensor_shape_mult_d1,
201
+ )
202
203
concat_tensor_layer = ctx.net.add_concatenation(
204
[
0 commit comments