Hi Nvidia Team,
I have converted the Pytorch Model(trained on custom data) to ONNX.
And While I am converting the ONNX to TRT I am getting the issue as attached below:
[06/16/2021-10:25:53] [V] [TRT] Parsing node: Concat_32 [Concat]
[06/16/2021-10:25:53] [V] [TRT] Searching for input: 433
[06/16/2021-10:25:53] [V] [TRT] Searching for input: 14507
[06/16/2021-10:25:53] [V] [TRT] Searching for input: 14508
[06/16/2021-10:25:53] [V] [TRT] Concat_32 [Concat] inputs: [433 -> (1)], [14507 -> (1)], [14508 -> (1)],
[06/16/2021-10:25:53] [V] [TRT] Registering constant layer: 14507 for ONNX initializer: 14507
[06/16/2021-10:25:53] [V] [TRT] Registering constant layer: 14508 for ONNX initializer: 14508
[06/16/2021-10:25:53] [V] [TRT] Registering layer: Concat_32 for ONNX node: Concat_32
[06/16/2021-10:25:53] [V] [TRT] Registering tensor: 436 for ONNX tensor: 436
[06/16/2021-10:25:53] [V] [TRT] Concat_32 [Concat] outputs: [436 -> (3)],
[06/16/2021-10:25:53] [V] [TRT] Parsing node: Tile_33 [Tile]
[06/16/2021-10:25:53] [V] [TRT] Searching for input: Transformation.GridGenerator.inv_delta_C
[06/16/2021-10:25:53] [V] [TRT] Searching for input: 436
[06/16/2021-10:25:53] [V] [TRT] Tile_33 [Tile] inputs: [Transformation.GridGenerator.inv_delta_C -> (23, 23)], [436 -> (3)],
[06/16/2021-10:25:53] [V] [TRT] Registering constant layer: Transformation.GridGenerator.inv_delta_C for ONNX initializer: Transformation.GridGenerator.inv_delta_C
[06/16/2021-10:25:53] [E] [TRT] (Unnamed Layer* 60) [ElementWise]: elementwise inputs must have same dimensions or follow broadcast rules (input dimensions were [2] and [3]).
[06/16/2021-10:25:53] [V] [TRT] Registering layer: Tile_33 for ONNX node: Tile_33
[06/16/2021-10:25:53] [E] [TRT] (Unnamed Layer* 60) [ElementWise]: elementwise inputs must have same dimensions or follow broadcast rules (input dimensions were [2] and [3]).
[06/16/2021-10:25:53] [V] [TRT] Registering tensor: 437 for ONNX tensor: 437
[06/16/2021-10:25:53] [V] [TRT] Tile_33 [Tile] outputs: [437 -> ()],
[06/16/2021-10:25:53] [V] [TRT] Parsing node: Unsqueeze_34 [Unsqueeze]
[06/16/2021-10:25:53] [V] [TRT] Searching for input: 430
[06/16/2021-10:25:53] [V] [TRT] Unsqueeze_34 [Unsqueeze] inputs: [430 -> ()],
[06/16/2021-10:25:53] [V] [TRT] Original shape: (), unsqueezing to: (1,)
[06/16/2021-10:25:53] [V] [TRT] Registering layer: Unsqueeze_34 for ONNX node: Unsqueeze_34
[06/16/2021-10:25:53] [E] [TRT] (Unnamed Layer* 60) [ElementWise]: elementwise inputs must have same dimensions or follow broadcast rules (input dimensions were [2] and [3]).
[06/16/2021-10:25:53] [V] [TRT] Registering tensor: 440 for ONNX tensor: 440
[06/16/2021-10:25:53] [V] [TRT] Unsqueeze_34 [Unsqueeze] outputs: [440 -> ()],
[06/16/2021-10:25:53] [V] [TRT] Parsing node: Concat_35 [Concat]
[06/16/2021-10:25:53] [V] [TRT] Searching for input: 440
[06/16/2021-10:25:53] [E] [TRT] (Unnamed Layer* 60) [ElementWise]: elementwise inputs must have same dimensions or follow broadcast rules (input dimensions were [2] and [3]).
[06/16/2021-10:25:53] [V] [TRT] Searching for input: 14509
[06/16/2021-10:25:53] [V] [TRT] Searching for input: 14510
[06/16/2021-10:25:53] [V] [TRT] Concat_35 [Concat] inputs: [440 -> ()], [14509 -> (1)], [14510 -> (1)],
[06/16/2021-10:25:53] [V] [TRT] Registering constant layer: 14509 for ONNX initializer: 14509
[06/16/2021-10:25:53] [V] [TRT] Registering constant layer: 14510 for ONNX initializer: 14510
[06/16/2021-10:25:53] [E] [TRT] (Unnamed Layer* 60) [ElementWise]: elementwise inputs must have same dimensions or follow broadcast rules (input dimensions were [2] and [3]).
[06/16/2021-10:25:53] [E] [TRT] /home/darshan/onnx-tensorrt/ModelImporter.cpp:703: While parsing node number 35 [Concat -> "443"]:
[06/16/2021-10:25:53] [E] [TRT] /home/darshan/onnx-tensorrt/ModelImporter.cpp:704: --- Begin node ---
[06/16/2021-10:25:53] [E] [TRT] /home/darshan/onnx-tensorrt/ModelImporter.cpp:705: input: "440"
input: "14509"
input: "14510"
output: "443"
name: "Concat_35"
op_type: "Concat"
attribute {
name: "axis"
i: 0
type: INT
}
[06/16/2021-10:25:53] [E] [TRT] /home/darshan/onnx-tensorrt/ModelImporter.cpp:706: --- End node ---
[06/16/2021-10:25:53] [E] [TRT] /home/darshan/onnx-tensorrt/ModelImporter.cpp:709: ERROR: /home/darshan/onnx-tensorrt/onnx2trt_utils.cpp:196 In function convertAxis:
[8] Assertion failed: axis >= 0 && axis < nbDims
[06/16/2021-10:25:53] [E] Failed to parse onnx file
[06/16/2021-10:25:53] [E] Parsing model failed
[06/16/2021-10:25:53] [E] Engine creation failed
[06/16/2021-10:25:53] [E] Engine set up failed
One issue is:(Unnamed Layer* 60) [ElementWise]: elementwise inputs must have same dimensions or follow broadcast rules (input dimensions were [2] and [3]).
Other is: [8] Assertion failed: axis >= 0 && axis < nbDims
Please help me to resolve this issue.
Looking forward to your reply
Thanks,
Darshan