Skip to content

test(relax): cover TFLite LOG and GREATER_EQUAL in test_frontend_tflite#19343

Merged
tlopex merged 3 commits intoapache:mainfrom
Dayuxiaoshui:main
Apr 4, 2026
Merged

test(relax): cover TFLite LOG and GREATER_EQUAL in test_frontend_tflite#19343
tlopex merged 3 commits intoapache:mainfrom
Dayuxiaoshui:main

Conversation

@Dayuxiaoshui
Copy link
Copy Markdown
Contributor

@Dayuxiaoshui
Copy link
Copy Markdown
Contributor Author

cc @tlopex

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds test cases for the log and greater_equal operators in the TFLite frontend for Relax. The review feedback suggests further increasing test coverage by including the tan and greater operators, which are supported but currently missing from the test suites.

- 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.
Address review feedback: cover unary TAN in test_element_wise and binary GREATER in test_split_compare, alongside existing trig/compare ops.
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.
Copy link
Copy Markdown
Member

@tlopex tlopex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't forget to put [] at the beginning of your title :)

@tlopex tlopex merged commit 87f2915 into apache:main Apr 4, 2026
9 checks passed
@Dayuxiaoshui
Copy link
Copy Markdown
Contributor Author

Don't forget to put [] at the beginning of your title :)

no problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants