Description
Resnet50.onnx failed to parse using tensorrt trtexec to be used in Deepstream
./trtexec --onnx=/home/ubuntu/Desktop/tensorflow-onnx/resnet_v1_50_inference.onnx
&&&& RUNNING TensorRT.trtexec # ./trtexec --onnx=/home/ubuntu/Desktop/tensorflow-onnx/resnet_v1_50_inference.onnx
[07/13/2020-07:12:21] [I] === Model Options ===
[07/13/2020-07:12:21] [I] Format: ONNX
[07/13/2020-07:12:21] [I] Model: /home/ubuntu/Desktop/tensorflow-onnx/resnet_v1_50_inference.onnx
[07/13/2020-07:12:21] [I] Output:
[07/13/2020-07:12:21] [I] === Build Options ===
[07/13/2020-07:12:21] [I] Max batch: 1
[07/13/2020-07:12:21] [I] Workspace: 16 MB
[07/13/2020-07:12:21] [I] minTiming: 1
[07/13/2020-07:12:21] [I] avgTiming: 8
[07/13/2020-07:12:21] [I] Precision: FP32
[07/13/2020-07:12:21] [I] Calibration:
[07/13/2020-07:12:21] [I] Safe mode: Disabled
[07/13/2020-07:12:21] [I] Save engine:
[07/13/2020-07:12:21] [I] Load engine:
[07/13/2020-07:12:21] [I] Inputs format: fp32:CHW
[07/13/2020-07:12:21] [I] Outputs format: fp32:CHW
[07/13/2020-07:12:21] [I] Input build shapes: model
[07/13/2020-07:12:21] [I] === System Options ===
[07/13/2020-07:12:21] [I] Device: 0
[07/13/2020-07:12:21] [I] DLACore:
[07/13/2020-07:12:21] [I] Plugins:
[07/13/2020-07:12:21] [I] === Inference Options ===
[07/13/2020-07:12:21] [I] Batch: 1
[07/13/2020-07:12:21] [I] Iterations: 10
[07/13/2020-07:12:21] [I] Duration: 3s (+ 200ms warm up)
[07/13/2020-07:12:21] [I] Sleep time: 0ms
[07/13/2020-07:12:21] [I] Streams: 1
[07/13/2020-07:12:21] [I] ExposeDMA: Disabled
[07/13/2020-07:12:21] [I] Spin-wait: Disabled
[07/13/2020-07:12:21] [I] Multithreading: Disabled
[07/13/2020-07:12:21] [I] CUDA Graph: Disabled
[07/13/2020-07:12:21] [I] Skip inference: Disabled
[07/13/2020-07:12:21] [I] Input inference shapes: model
[07/13/2020-07:12:21] [I] Inputs:
[07/13/2020-07:12:21] [I] === Reporting Options ===
[07/13/2020-07:12:21] [I] Verbose: Disabled
[07/13/2020-07:12:21] [I] Averages: 10 inferences
[07/13/2020-07:12:21] [I] Percentile: 99
[07/13/2020-07:12:21] [I] Dump output: Disabled
[07/13/2020-07:12:21] [I] Profile: Disabled
[07/13/2020-07:12:21] [I] Export timing to JSON file:
[07/13/2020-07:12:21] [I] Export output to JSON file:
[07/13/2020-07:12:21] [I] Export profile to JSON file:
[07/13/2020-07:12:21] [I]
Input filename: /home/ubuntu/Desktop/tensorflow-onnx/resnet_v1_50_inference.onnx
ONNX IR version: 0.0.4
Opset version: 8
Producer name: tf2onnx
Producer version: 1.7.0
Domain:
Model version: 0
Doc string:
[07/13/2020-07:12:22] [W] [TRT] onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
[07/13/2020-07:12:22] [W] [TRT] onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
[07/13/2020-07:12:22] [W] [TRT] onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
[07/13/2020-07:12:22] [W] [TRT] onnx2trt_utils.cpp:198: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
[07/13/2020-07:12:22] [E] [TRT] Network has dynamic or shape inputs, but no optimization profile has been defined.
[07/13/2020-07:12:22] [E] [TRT] Network validation failed.
[07/13/2020-07:12:22] [E] Engine creation failed
[07/13/2020-07:12:22] [E] Engine set up failed
&&&& FAILED TensorRT.trtexec # ./trtexec --onnx=/home/ubuntu/Desktop/tensorflow-onnx/resnet_v1_50_inference.onnx
Environment
TensorRT Version:7.0
GPU Type: T4
Nvidia Driver Version: 440.33.01
CUDA Version: 10.2
CUDNN Version:
Operating System + Version: 18.04
Python Version (if applicable): 3.6.9
TensorFlow Version (if applicable): 1.14
PyTorch Version (if applicable):
Baremetal or Container (if container which image + tag):