onnx / onnx-tensorrt

ONNX-TensorRT: TensorRT backend for ONNX
Apache License 2.0
2.85k stars 539 forks source link

[5] Assertion failed: tensors.count(input_name) #487

Closed Tian14267 closed 3 years ago

Tian14267 commented 4 years ago

I get this error in onnx2trt:

Input filename: age.onnx ONNX IR version: 0.0.6 Opset version: 11 Producer name: pytorch Producer version: 1.5 Domain:
Model version: 0 Doc string:

WARNING: ONNX model has a newer ir_version (0.0.6) than this parser was built against (0.0.4). Parsing model While parsing node number 0 [Conv -> "377"]: ERROR: /home/fffan/fffan_files/other/onnx-tensorrt-5.1/ModelImporter.cpp:552 In function importModel: [5] Assertion failed: tensors.count(input_name)

My trt is TensorRT 5.1.5 , cuda is 10.1

Spark001 commented 4 years ago

Have you ever solved this problem?

I encountered the same question.

daixiangzi commented 3 years ago

me too

MuhammadAsadJaved commented 3 years ago

I have the same problem. any hints to resolve this issue?

**Input filename: modelIn/model-verbos.onnx ONNX IR version: 0.0.6 Opset version: 11 Producer name: tf2onnx Producer version: 1.6.3 Domain:
Model version: 0 Doc string:

Parsing model While parsing node number 1 [Conv -> "lwir_darknet/conv0/batch_normalization/FusedBatchNormV3:0"]: ERROR: /home/littro/onnx-tensorrt/ModelImporter.cpp:537 In function importModel: [5] Assertion failed: tensors.count(input_name)**

kevinch-nv commented 3 years ago

What version of TRT are you using? This should be fixed in later releases.

kevinch-nv commented 3 years ago

Closing due to no activity in this thread, if you are still having troubles feel free to open a new issue with a repro on the latest version of TRT.