This is an automated email from the ASF dual-hosted git repository.

mshr pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/main by this push:
     new 53b6576281 [Fix] Fix tvm.tir references in Tflite frontend (#18940)
53b6576281 is described below

commit 53b65762816693cdaa81f67baec72f378b5945bc
Author: Shushi Hong <[email protected]>
AuthorDate: Fri Mar 27 03:17:49 2026 -0400

    [Fix] Fix tvm.tir references in Tflite frontend (#18940)
    
    as per title
---
 python/tvm/relax/frontend/tflite/tflite_frontend.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/python/tvm/relax/frontend/tflite/tflite_frontend.py 
b/python/tvm/relax/frontend/tflite/tflite_frontend.py
index 0abd700562..5c73af18ad 100644
--- a/python/tvm/relax/frontend/tflite/tflite_frontend.py
+++ b/python/tvm/relax/frontend/tflite/tflite_frontend.py
@@ -597,8 +597,8 @@ class OperatorConverter:
 
         # Get min/max of the output dtype. This will be used to ensure that 
clip a_min/a_max are not
         # beyond the dtype range.
-        qmin = float(tvm.tir.op.min_value(dtype).value)
-        qmax = float(tvm.tir.op.max_value(dtype).value)
+        qmin = float(tvm.tirx.min_value(dtype).value)
+        qmax = float(tvm.tirx.max_value(dtype).value)
 
         # The input expr is a quantized tensor with its scale and zero point. 
We calculate the
         # suitable clip off points based on these scale and zero point.
@@ -1117,8 +1117,8 @@ class OperatorConverter:
             # Get min/max of the input dtype. This will be used to ensure that
             # clip a_min/a_max are not beyond the dtype range.
             input_tensor_type_str = 
self.get_tensor_type_str(input_tensor.tensor.Type())
-            qmin = float(tvm.tir.op.min_value(input_tensor_type_str).value)
-            qmax = float(tvm.tir.op.max_value(input_tensor_type_str).value)
+            qmin = float(tvm.tirx.min_value(input_tensor_type_str).value)
+            qmax = float(tvm.tirx.max_value(input_tensor_type_str).value)
 
             out = relax.op.clip(
                 in_expr, min=max(qmin, quantize(-1.0)), max=min(qmax, 
quantize(1.0))

Reply via email to