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 2140c49 commit a016bc0Copy full SHA for a016bc0
py/torch_tensorrt/dynamo/conversion/impl/select.py
@@ -257,15 +257,17 @@ def index(
257
)
258
else:
259
dim_tensor_shape_mult_d1 = transpose_tensor_shape[i]
260
- mult_d1 = convert_binary_elementwise(
261
- ctx,
262
- target,
263
- source_ir,
264
- name + f"_shape_{i}",
265
- trt.ElementWiseOperation.PROD,
266
- mult_d1,
267
- dim_tensor_shape_mult_d1,
268
- )
+
+ 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,
269
+ dim_tensor_shape_mult_d1,
270
+ )
271
272
concat_tensor_layer = ctx.net.add_concatenation(
273
[
0 commit comments