Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TFLite][Frontend] Fix test failures caused by div-by-zero #15844

Merged
merged 12 commits into from
Oct 10, 2023

Conversation

p3achyjr
Copy link
Contributor

@p3achyjr p3achyjr commented Sep 30, 2023

Tests were failing b/c TVM and TFLite disagree on div-by-zero cases.

floor_mod still fails, this is probably a behaviorial difference.

#15148

@p3achyjr p3achyjr changed the title [TFLite][Frontend] Support quantized floor_mod [TFLite][Frontend] Fix test failures caused by div-by-zero Sep 30, 2023
@p3achyjr
Copy link
Contributor Author

p3achyjr commented Oct 9, 2023

@Lunderberg hi! sorry to bug. is this PR still needed?

@Lunderberg
Copy link
Contributor

@p3achyjr Thank you for the reminder, and it would still be good to get this PR in, even if re-enabling the flaky floor_mod test is saved for a follow-up PR.

Copy link
Contributor

@Lunderberg Lunderberg left a comment

Choose a reason for hiding this comment

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

Thank you for making the changes, and LGTM!

@Lunderberg Lunderberg merged commit eb2a4bc into apache:main Oct 10, 2023
18 checks passed
@p3achyjr
Copy link
Contributor Author

@Lunderberg thanks for getting back!!

raise ZeroDivisionError("Input range is 0.")

# only compute for rhs.
quant_scale = 255 / (inq1_max - inq1_min)
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't there be a dependency on the data type for the value 255? Since the data type can be int8, int16.

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.

3 participants