speedup quant and evaluation, fix recompile issue (#897)
* rewrite the implementation for ease-of-maintain
Signed-off-by: He, Xin3 <xin3.he@intel.com>
* fix bug
Signed-off-by: He, Xin3 <xin3.he@intel.com>
* fix quant performance
Signed-off-by: He, Xin3 <xin3.he@intel.com>
* Update auto_round/compressors/base.py
---------
Signed-off-by: He, Xin3 <xin3.he@intel.com>