Closed Justin020718 closed 3 weeks ago
@Justin020718
before | migration after |
---|---|
INetworkDefinition.has_explicit_precision | Explicit precision support is removed in 10.0 |
Your tensorrt is Version: 10.0.1
ref https://docs.nvidia.com/deeplearning/tensorrt/migration-guide/index.html
@lix19937 Thank you for your reply, this is a version issue. After updating to polygraphy 0.49, it can convert successfully without such error.
Update to polygraphy 0.49 and it wont happen.
Description
Trying to convert an ONNX model to int8 engine with Polygraphy 0.47.1, saying:
Here is my code to generate data:
I've also made another issue, where I was trying to convert with python script. Thank u for ur time. https://github.com/NVIDIA/TensorRT/issues/3926#issue-2338398048
Environment
TensorRT Version: 10.0.1.6 NVIDIA GPU: RTX 3070 laptop NVIDIA Driver Version:
CUDA Version: 12.4
Operating System: Windows 10 Python Version: 3.8 PyTorch Version: 2.3.0
Relevant Files
Model link:
https://drive.google.com/file/d/1O-ZT50QBbaED0ouYgUQGXprYadiPr3P2/view?usp=sharing
Steps To Reproduce
Run following commands:
Commands or scripts:
Have you tried the latest release?: Yes. Can this model run on other frameworks? For example run ONNX model with ONNXRuntime (
polygraphy run <model.onnx> --onnxrt
): Yes.