Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QNN quantize and dequantize operators. #3745

Merged
merged 13 commits into from
Aug 16, 2019
Prev Previous commit
Removing unnecessary code.
shoubhikbhatti@gmail.com committed Aug 16, 2019
commit 6d62dc5aa72028ddbce1aca5e3f6f0f5342542c9
6 changes: 0 additions & 6 deletions tests/python/relay/test_qnn_quantize.py
Original file line number Diff line number Diff line change
@@ -20,12 +20,6 @@
from tvm import relay
from tvm.contrib import graph_runtime

def run_infer_type(expr):
mod = relay.Module.from_expr(expr)
mod = relay.transform.InferType()(mod)
entry = mod["main"]
return entry if isinstance(expr, relay.Function) else entry.body

def test_quantize_op():

def quantize_test_driver(in_dtype, quant_args, out_dtype, in_data, verify_output_data):
7 changes: 0 additions & 7 deletions tests/python/relay/test_qnn_requantize.py
Original file line number Diff line number Diff line change
@@ -22,13 +22,6 @@

roundings = ["UPWARD", "TONEAREST"]

def run_infer_type(expr):
mod = relay.Module.from_expr(expr)
mod = relay.transform.InferType()(mod)
entry = mod["main"]
return entry if isinstance(expr, relay.Function) else entry.body


def test_requantize():
def verify(mod, goldens):
with relay.build_config(opt_level=3):