microsoft / nni

An open source AutoML toolkit for automate machine learning lifecycle, including feature engineering, neural architecture search, model compression and hyper-parameter tuning.
https://nni.readthedocs.io
MIT License
14.07k stars 1.82k forks source link

Quantization tutorial error #5174

Open ayj8655 opened 2 years ago

ayj8655 commented 2 years ago

Describe the issue:

I was doing a quantization tutorial (quantization_quick_start_mnist, quantization_speedup) However, I runnig the tutorial on Jupyter notebook and an error occurred Both tutorials have errors in the same code

image

Environment:

How to reproduce it?:

https://nni.readthedocs.io/en/latest/tutorials/quantization_quick_start_mnist.html https://nni.readthedocs.io/en/latest/tutorials/quantization_speedup.html

I downloaded the jupyter Notebook and run it without modification.

Lijiaoa commented 2 years ago

the same issue with #5002 and #4938 keyword:

example for quantization

DynamicRange(min: -0.424213, max: 2.82149). Dynamic range should be symmetric for better accuracy. AttributeError: 'NoneType' object has no attribute 'dynamic_range'

Bonytu commented 1 year ago

I'm sorry for replying you very late, may I ask if you solved the problem?