From 85351340533defcc227c3b7637faed9b1a53d85a Mon Sep 17 00:00:00 2001 From: anijain2305 Date: Thu, 9 Apr 2020 20:19:50 +0000 Subject: [PATCH] Fix space. --- python/tvm/_ffi/_pyversion.py | 6 +++--- src/relay/qnn/op/requantize.cc | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/python/tvm/_ffi/_pyversion.py b/python/tvm/_ffi/_pyversion.py index e9ccf00422d8..9579acf2139c 100644 --- a/python/tvm/_ffi/_pyversion.py +++ b/python/tvm/_ffi/_pyversion.py @@ -21,6 +21,6 @@ #---------------------------- # Python3 version. #---------------------------- -# if not (sys.version_info[0] >= 3 and sys.version_info[1] >= 6): -# PY3STATEMENT = "The minimal Python requirement is Python 3.6" -# raise Exception(PY3STATEMENT) +if not (sys.version_info[0] >= 3 and sys.version_info[1] >= 6): + PY3STATEMENT = "The minimal Python requirement is Python 3.6" + raise Exception(PY3STATEMENT) diff --git a/src/relay/qnn/op/requantize.cc b/src/relay/qnn/op/requantize.cc index 6200bf4ba8aa..a2a46497e197 100644 --- a/src/relay/qnn/op/requantize.cc +++ b/src/relay/qnn/op/requantize.cc @@ -176,9 +176,9 @@ Expr RequantizeLower(const Expr& input_tensor, const Expr& input_scale, shifted_int32_t = Add(Cast(output_zero_point, DataType::Int(32)), scaled_int32_t); } - // 4) Clip to the out_dtype min/max. Skip clipping if out_dtype is Int32. The fixed point - // multiplication keeps the value in int32 range. - if (out_dtype == DataType::Int(32)) { + // 4) Clip to the out_dtype min/max. Skip clipping if out_dtype is Int32. The fixed point + // multiplication keeps the value in int32 range. + if (out_dtype == DataType::Int(32)) { return shifted_int32_t; }