question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

onnx export error and can the onnx model support tensorRT?

See original GitHub issue

when I export the detr_r50.pth to onnx model, but it has an error:

RuntimeError: Failed to export an ONNX attribute 'onnx::Sub', since it's not constant, please try to make things (e.g., kernel size) static if possible

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:19 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
freedenScommented, Sep 23, 2021

i have opened a solution of detr-tensorrt there: https://github.com/wang-xinyu/tensorrtx/tree/master/detr

2reactions
DataXujingcommented, May 8, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

ONNX and tensorRT: ERROR: Network must have at least one ...
Hi, I exported a model to ONNX from pytorch 1.0, and tried to load it to tensorRT using: def build_engine_onnx(model_file): with trt.
Read more >
torch.onnx — PyTorch 1.13 documentation
The torch.onnx module can export PyTorch models to ONNX. The model can then be consumed by any of the many runtimes that support...
Read more >
TensorRT Execution Provider - NVIDIA - ONNX Runtime
If some operators in the model are not supported by TensorRT, ONNX Runtime will partition the graph and only send supported subgraphs to...
Read more >
Tutorial 9: ONNX to TensorRT (Experimental)
Try the new MMDeploy to deploy your model · How to convert models from ONNX to TensorRT · How to evaluate the exported...
Read more >
Deployment techniques for PyTorch models using TensorRT
To deploy PyTorch models using TensorRT, we will export them in ONNX format. ONNX stands for Open Neural Network Exchange and is an...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found