NVIDIA / NVIDIA/TensorRT

How are qparams (scale and zero_point) determined after fusing Conv and BN layers?

Open
#4,369 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Module:Quantization triaged
Dominant language
C++
Stars
13.4k
Forks
2.4k
Avg merge
5d 3h
Merged PRs (30d)
2

Description

During quantization (using pytorch_quantization), the qparams (scale and zero_point) of old Conv is computed using Calibrator. However, when the Conv and Batch Normalization (BN) layers are fused, the weights and biases of the fused Conv change. In this case, the original qparams may not be applicable anymore. Could you please explain how to correctly determine the new qparams (scale and zero_point) after this fusion?

Contributor guide

Open the contributing guide

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.

Research direction

No file, test, or entry point is identified. Start by tracing the pytorch_quantization calibration and Conv/BN fusion behavior described in the issue, then document how qparams should be determined after fusion. Done means a clear, project-supported explanation covering scale and zero_point.

Written by the indexing model from the issue text.

Assessment

Domain
machine-learning
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.