Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong datatype annotation in adaround #3707

Open
NikilXYZ opened this issue Jan 3, 2025 · 0 comments
Open

Wrong datatype annotation in adaround #3707

NikilXYZ opened this issue Jan 3, 2025 · 0 comments

Comments

@NikilXYZ
Copy link
Contributor

NikilXYZ commented Jan 3, 2025

I'm looking at the aimet_onnx

In adaround_optimizer.py: AdaroundOptimizer's adaround_module and _optimize_rounding both expect a quant_model of type QuantizationSimModel but if you actually run the code and see what's being passed in, we're actually receiving an onnxruntime.quantization.onnx_model.ONNXModel object.

That's because line 254 of adaround_weight.py passes in quantsim.model. This object has float weights if you check its initializer() during debugging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant