[QUANTIZE] Refactor quantization codebase and fix model accuracy (#3543)
authorziheng <ziheng@apache.org>
Thu, 15 Aug 2019 09:31:30 +0000 (02:31 -0700)
committerGitHub <noreply@github.com>
Thu, 15 Aug 2019 09:31:30 +0000 (02:31 -0700)
commit7eb1f353de5a628d3e7ceb3b012dc3d58afac2e4
tree08e89fc77f318070d15acb6d6d058af8cba9f1c4
parent60fc9f74761ce3dceb1a554a28e85f3a5c2478cc
[QUANTIZE] Refactor quantization codebase and fix model accuracy (#3543)

* Refactor.

* update

* update

* update

* update

* update

* update
18 files changed:
include/tvm/relay/analysis.h
include/tvm/relay/attrs/annotation.h
python/tvm/relay/analysis.py
python/tvm/relay/quantize/__init__.py
python/tvm/relay/quantize/_annotate.py
python/tvm/relay/quantize/_partition.py [new file with mode: 0644]
python/tvm/relay/quantize/quantize.py
src/relay/op/annotation/annotation.cc
src/relay/pass/fold_constant.cc
src/relay/pass/pattern_util.h
src/relay/pass/quantize/annotate.cc [new file with mode: 0644]
src/relay/pass/quantize/partition.cc [new file with mode: 0644]
src/relay/pass/quantize/quantize.cc
src/relay/pass/quantize/quantize.h
src/relay/pass/quantize/realize.cc [new file with mode: 0644]
tests/python/nightly/quantization/test_quantization_accuracy.py [new file with mode: 0644]
tests/python/relay/test_pass_quantize.py [deleted file]
tests/scripts/task_python_nightly.sh [new file with mode: 0755]