inadob commented on a change in pull request #4789: [Frontend][TFLite] 
Dynamically calculate input_stats of any fake_quant range
URL: https://github.com/apache/incubator-tvm/pull/4789#discussion_r374622386
 
 

 ##########
 File path: tests/python/frontend/tflite/test_forward.py
 ##########
 @@ -793,13 +799,14 @@ def _test_elemwise(math_op, data, 
fused_activation_function=None, quantized=Fals
 
         if quantized:
             inq_const = tf.quantization.fake_quant_with_min_max_args(data[0], 
min=-100, max=100, name="const_tensor")
-            inq_data = 
[tf.quantization.fake_quant_with_min_max_args(in_data[0], min=-100, max=100, 
name="inq_1")]
+            inq_data = 
[tf.quantization.fake_quant_with_min_max_args(in_data[0], min=-50, max=50, 
name="inq_1")]
+            input_range = {'inq_1': (-100, 100)}
 
 Review comment:
   Thanks for spotting the mistake, I will fix it 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to