Trtexec from tensorRT 6.5.0.7 fails to parse onnx file; but trtexec from tensorRT 7.2 succeeds

Please provide the following info (check/uncheck the boxes after creating this topic):
Software Version
DRIVE OS Linux 5.2.6
DRIVE OS Linux 5.2.6 and DriveWorks 4.0
DRIVE OS Linux 5.2.0
DRIVE OS Linux 5.2.0 and DriveWorks 3.5
NVIDIA DRIVE™ Software 10.0 (Linux)
NVIDIA DRIVE™ Software 9.0 (Linux)
other DRIVE OS version
other

Target Operating System
Linux
QNX
other

Hardware Platform
NVIDIA DRIVE™ AGX Xavier DevKit (E3550)
NVIDIA DRIVE™ AGX Pegasus DevKit (E3550)
other

SDK Manager Version
1.7.0.8846
other

Host Machine Version
native Ubuntu 18.04
other

I get the following ERROR with tenrorRT 6.5 in Driveworks when parsing an onnx file; same model succeeds with tensorRT 7.2 on server.


While parsing node number 168 [Resize]:
ERROR: ModelImporter.cpp:125 In function parseGraph:
[5] Assertion failed: ctx->tensors().count(inputName)
[01-11-2021 18:07:57] Releasing Driveworks SDK Context
Error: DW_FILE_INVALID: DNNGenerator: Unable to parse ONNX model.

Is this a known issue?

The onnx model was generated with pytorch; here are the version details:

[01-11-2021 18:10:00] DNNGenerator: Initializing TensorRT generation on model yolo-semseg_opset12.onnx.

Input filename: yolo-semseg_opset12.onnx
ONNX IR version: 0.0.6
Opset version: 12
Producer name: pytorch
Producer version: 1.7
Domain:
Model version: 0
Doc string:

with --verbose:


While parsing node number 168 [Resize → “754”]:
— Begin node —
input: “749”
input: “753”
input: “1131”
output: “754”
name: “Resize_168”
op_type: “Resize”
attribute {
name: “coordinate_transformation_mode”
s: “asymmetric”
type: STRING
}
attribute {
name: “cubic_coeff_a”
f: -0.75
type: FLOAT
}
attribute {
name: “mode”
s: “nearest”
type: STRING
}
attribute {
name: “nearest_mode”
s: “floor”
type: STRING
}

— End node —
ERROR: ModelImporter.cpp:125 In function parseGraph:
[5] Assertion failed: ctx->tensors().count(inputName)
[11/02/2021-13:26:34] [E] Failed to parse onnx file
[11/02/2021-13:26:34] [E] Parsing model failed
terminate called after throwing an instance of ‘std::runtime_error’
what(): Failed to create object
Aborted (core dumped)

Hi, @user3705
Please try if running an onnx file generated with opset 10 has the issue. Thanks.

Thanks! After setting the opset version to 10, the model completes to run.