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.

EfficientNET.onnx does not run in TensorRT

See original GitHub issue

Hi, I’ve got this error for running the converted EfficientNet from PyTorch to Onnx in TensorRT:

Traceback (most recent call last):
  File "tensorrt_python.py", line 59, in <module>
    context = engine.create_execution_context()
AttributeError: 'NoneType' object has no attribute 'create_execution_context'

Can anybody help me?

TensorRT version: 6.1.05 Pytorch: 1.1.0 Onnx: 1.5.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
Soroorshcommented, Apr 22, 2020

Finally, I could run the efficientNet model using this environment:

TensorRT 7
ONNX 1.5.0
Pytorch 1.3.0
torchvision 0.4.2
1reaction
MartinBrazdilcommented, Apr 16, 2020

There was an error during engine creation hence engine is None. You have to provide more information how your engine is created because engine creation can fail for various reasons.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tensorrt convert efficientnet-b0 model published by nvidia ...
The error said: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64.
Read more >
TensorRT/ONNX - eLinux.org
Since TensorRT 6.0 released and the ONNX parser only supports networks with an explicit batch dimension, this part will introduce how to do ......
Read more >
ONNX to TensorRT (Experimental)
Use our tool pytorch2onnx.md to convert the model from PyTorch to ONNX. ... --max-batch-size : The max batch size of TensorRT model, should...
Read more >
Speed-up ONNX models with TensorRT - DeepDetect
DeepDetect is an Open-Source Deep Learning platform made by Jolibrain's scientists for the Enterprise.
Read more >
Tensorrt onnx supported layers - Campo dei Bambini
While there has been a lot of examples for running inference using ONNX Runtime ... We found some ONNX layers cannot be parsed...
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