From 44d749d1efb8e23941ed4362aac4b95f0530d0d2 Mon Sep 17 00:00:00 2001 From: Dayuxiaoshui <792179245@qq.com> Date: Sat, 4 Apr 2026 01:50:02 +0000 Subject: [PATCH 1/3] test(relax): cover TFLite LOG and GREATER_EQUAL in test_frontend_tflite - Extend test_element_wise with tf.math.log -> R.log. - Extend test_split_compare with tf.math.greater_equal -> R.greater_equal, matching the existing split-tensor compare pattern and bool Expected IR. --- tests/python/relax/test_frontend_tflite.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/python/relax/test_frontend_tflite.py b/tests/python/relax/test_frontend_tflite.py index e7d81cf5fea0..6fb22ac8e4ad 100644 --- a/tests/python/relax/test_frontend_tflite.py +++ b/tests/python/relax/test_frontend_tflite.py @@ -511,6 +511,7 @@ def main(x: R.Tensor((1, 30), dtype="float32")) -> R.Tensor((1, 30), dtype="floa (tf.math.cos, R.cos), (tf.math.sin, R.sin), (tf.math.exp, R.exp), + (tf.math.log, R.log), (tf.math.negative, R.negative), (tf.round, R.round), (tf.math.rsqrt, R.rsqrt), @@ -542,6 +543,7 @@ def main(x: R.Tensor((1, 30), dtype="float32")) -> R.Tensor((1, 30), dtype="floa [ (tf.math.less, R.less), (tf.math.less_equal, R.less_equal), + (tf.math.greater_equal, R.greater_equal), (tf.math.equal, R.equal), (tf.math.not_equal, R.not_equal), ], From 36e3579c88b137ca4b0da9c8397cba0ed8680e6e Mon Sep 17 00:00:00 2001 From: Dayuxiaoshui <792179245@qq.com> Date: Sat, 4 Apr 2026 02:02:10 +0000 Subject: [PATCH 2/3] test(relax): add TFLite frontend tests for tan and greater Address review feedback: cover unary TAN in test_element_wise and binary GREATER in test_split_compare, alongside existing trig/compare ops. --- tests/python/relax/test_frontend_tflite.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/python/relax/test_frontend_tflite.py b/tests/python/relax/test_frontend_tflite.py index 6fb22ac8e4ad..d64d6036dede 100644 --- a/tests/python/relax/test_frontend_tflite.py +++ b/tests/python/relax/test_frontend_tflite.py @@ -510,6 +510,7 @@ def main(x: R.Tensor((1, 30), dtype="float32")) -> R.Tensor((1, 30), dtype="floa (tf.math.abs, R.abs), (tf.math.cos, R.cos), (tf.math.sin, R.sin), + (tf.math.tan, R.tan), (tf.math.exp, R.exp), (tf.math.log, R.log), (tf.math.negative, R.negative), @@ -543,6 +544,7 @@ def main(x: R.Tensor((1, 30), dtype="float32")) -> R.Tensor((1, 30), dtype="floa [ (tf.math.less, R.less), (tf.math.less_equal, R.less_equal), + (tf.math.greater, R.greater), (tf.math.greater_equal, R.greater_equal), (tf.math.equal, R.equal), (tf.math.not_equal, R.not_equal), From 4003fc94b2559094d616bdd320cd9017f8b1db59 Mon Sep 17 00:00:00 2001 From: Dayuxiaoshui <792179245@qq.com> Date: Sat, 4 Apr 2026 03:36:40 +0000 Subject: [PATCH 3/3] fix(test): remove tan from TFLite element_wise parametrization tf.math.tan emits a custom TFLite op under TFLITE_BUILTINS + SELECT_TF_OPS, which Relax from_tflite rejects in check_unsupported_ops. Builtin TAN remains mapped in the frontend when present. --- tests/python/relax/test_frontend_tflite.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/python/relax/test_frontend_tflite.py b/tests/python/relax/test_frontend_tflite.py index d64d6036dede..fd3def052127 100644 --- a/tests/python/relax/test_frontend_tflite.py +++ b/tests/python/relax/test_frontend_tflite.py @@ -510,7 +510,6 @@ def main(x: R.Tensor((1, 30), dtype="float32")) -> R.Tensor((1, 30), dtype="floa (tf.math.abs, R.abs), (tf.math.cos, R.cos), (tf.math.sin, R.sin), - (tf.math.tan, R.tan), (tf.math.exp, R.exp), (tf.math.log, R.log), (tf.math.negative, R.negative),