Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Issues with Running 'e2e_tensorrt_resnet_example.py' Example

Open
#407 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python

Research direction

Start with e2e_tensorrt_resnet_example.py and inspect the calibrator.compute_range() call and the calibration table generation before rerunning the ResNet50 TRT EP example. Done means the example completes calibration and produces an INT8 calibration table that TRT EP can read without the reported errors.

Written by the indexing model from the issue text.

Description

Hello, I am trying to run the end-to-end quantization example for ResNet50 using TRT EP and facing couple of issues. The first problem I am facing is 'compute_range' attribute is not available in 'MinMaxCalibrater'.

Screenshot 2024-03-29 at 8 50 04 AM

When I comment the 'write_calibration_table(calibrator.compute_range())', I get another which is again probably due to the first one as It shows an exception: "Failed to read INT8 calibration table calibration.flatbuffers"

Screenshot 2024-03-29 at 8 50 59 AM

was wondering if somebody have an insight, thanks!

Dominant language
C++
Stars
1.7k
Forks
414
Avg merge
15h 1m
Merged PRs (30d)
7

Getting set up

We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/onnxruntime-inference-examples

All issues in microsoft/onnxruntime-inference-examples

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.