Skip to content

[TE] Fix Const Int bound analysis to handle uints for division - #10102

Merged
junrushao merged 2 commits into
apache:mainfrom
AndrewZhaoLuo:aluo/fix-integer-const-bounds-analysis
Jan 29, 2022
Merged

[TE] Fix Const Int bound analysis to handle uints for division#10102
junrushao merged 2 commits into
apache:mainfrom
AndrewZhaoLuo:aluo/fix-integer-const-bounds-analysis

Conversation

@AndrewZhaoLuo

@AndrewZhaoLuo AndrewZhaoLuo commented Jan 28, 2022

Copy link
Copy Markdown
Contributor

The analyzer tries to see the range an integer variable can represent. Specifically, if the range of a divisor contained zero it would just sort of be ignored (assuming probably that run time checks or otherwise would catch this). This didn't really work for uints though and the analyzer would be sure you were dividing by 0 and be very mad at you

Now
https://discuss.tvm.apache.org/t/failure-occurs-when-using-relay-floor-mod-and-the-divisor-is-of-type-uint64/11994/2

@junrushao
junrushao merged commit 21154c2 into apache:main Jan 29, 2022
ylc pushed a commit to ylc/tvm that referenced this pull request Feb 16, 2022
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