Add test for the qnn_add operator (#4282)
authorIna Dobreva <55383260+inadob@users.noreply.github.com>
Tue, 12 Nov 2019 20:23:04 +0000 (20:23 +0000)
committerZhi <5145158+zhiics@users.noreply.github.com>
Tue, 12 Nov 2019 20:23:04 +0000 (12:23 -0800)
commite6806115d4a99883bf2c7bdb5014972db6382eb4
treef4328bc33aca7ebf7a36cefcf94a88b9fc67a55d
parentdddb0ed025d7ab93f51eabe92e4c6cc597ce266f
Add test for the qnn_add operator (#4282)

* Add test for the qnn_add operator

The tests use fake quant approach so until the tf session tensors remain in float32.
The test data has to be passed in uint8 because of how the tflite/tvm comparison works.
Abs tolerance up to 1 is allowed for the qnn results. For now input_stats are hardcoded
assuming the tests for the other qnn ops will pass the input data in the same range.

* Separate qnn uint8 test function from the fp32 elemwise tests

Isolate qnn uint8 elemwise tests
Remove blank lines
tests/python/frontend/tflite/test_forward.py