Skip to content

Wrong datatype annotation in adaround #3707

@NikilXYZ

Description

@NikilXYZ

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.

Metadata

Metadata

Assignees

Labels

aimet-onnxNew feature or bug fix for AIMET ONNXbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions