[BYOC][ACL] Support asymmetric per-layer quantized operators (#6109)
authorlhutton1 <35535092+lhutton1@users.noreply.github.com>
Wed, 29 Jul 2020 16:18:57 +0000 (17:18 +0100)
committerGitHub <noreply@github.com>
Wed, 29 Jul 2020 16:18:57 +0000 (09:18 -0700)
commit39c70360b6ec586c91edfe8f93e801079bbbbdd5
tree895da0842bd6d0fcb66675e8c1c6f117daffd0ed
parent75038cb13365b26f81501587e56c7a1b1c8f0064
[BYOC][ACL] Support asymmetric per-layer quantized operators (#6109)

* [BYOC][ACL] Support asymmetric per-layer quantization

Adds support for asymmetric per-layer quantization in the ACL runtime. This includes support for qnn.conv2d, nn.maxpool2d and reshape. Reflected these changes in codegen and runtime tests.

Change-Id: I8f610bd37af1e3740fd48c2d502bcc4727d9d712

* Address comments

Change-Id: I4f9e3e7dbf6053066927cf07c4c19ecc88572e9d

* Fix tutorial

Change-Id: I4371e9d97a120fb7776db40ffcde60f46927af4d

* Improve test infrastructure

* Doc-string for generate trials
* Output params on error

Change-Id: Ib2e2b1fcdf05cdc77f7f4fb4b46395f28c129957
12 files changed:
docs/deploy/arm_compute_lib.rst
python/tvm/relay/op/contrib/arm_compute_lib.py
python/tvm/relay/qnn/op/layout_conversions.py
src/relay/backend/contrib/arm_compute_lib/codegen.cc
src/runtime/contrib/arm_compute_lib/acl_runtime.cc
src/runtime/contrib/arm_compute_lib/acl_utils.cc
src/runtime/contrib/arm_compute_lib/acl_utils.h
tests/python/contrib/test_arm_compute_lib/infrastructure.py
tests/python/contrib/test_arm_compute_lib/test_conv2d.py
tests/python/contrib/test_arm_compute_lib/test_network.py
tests/python/contrib/test_arm_compute_lib/test_pooling.py
tests/python/contrib/test_arm_compute_lib/test_reshape.py