Description
This onnx model can run with onnxruntime-gpu.
I also didn’t see any unsupported operators for onnx2trt.
But I cannot generate the trt model with trtexec. The full error message is belove:
[04/12/2023-10:54:15] [E] Error[10]: [optimizer.cpp::nvinfer1::builder::cgraph::LeafCNode::computeCosts::3728] Error Code 10: Internal Error (Could not find any implementation for node {ForeignNode[668...Mul_497]}.)
[04/12/2023-10:54:15] [E] Error[2]: [builder.cpp::nvinfer1::builder::Builder::buildSerializedNetwork::751] Error Code 2: Internal Error (Assertion engine != nullptr failed. )
[04/12/2023-10:54:15] [E] Engine could not be created from network
[04/12/2023-10:54:15] [E] Building engine failed
[04/12/2023-10:54:15] [E] Failed to create engine from model or file.
[04/12/2023-10:54:15] [E] Engine set up failed
Environment
TensorRT Version: 8.5.3.1
GPU Type: RTX 3080
Nvidia Driver Version: 516.94
CUDA Version: 11.1
CUDNN Version: 8.0.5
Operating System + Version: Win10
Python Version (if applicable): 3.8.10
TensorFlow Version (if applicable):
PyTorch Version (if applicable): 1.9.1
Baremetal or Container (if container which image + tag):
Relevant Files
Here is the onnx model link.
Steps To Reproduce
trtexec.exe --onnx=model_final_1.onnx --saveEngine=model_final_1.engine --verbose