-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[SCHEDULE] Fix boundary check #2126
Conversation
LGTM |
Thanks for the contribution, please add a regression test-case https://docs.tvm.ai/contribute/code_review.html#ensure-test-coverage |
@tqchen sorry I was thinking that the fix is 2-line, and the correctness should be obvious. Okay I will send an update later today |
Just to make sure we don't stupidly change it back again, regression tests are also very useful during code refactors, since we might mistakenly reintroduce the bug again |
@tqchen added a unittest just now, CI passes, could you help review again? Thanks! |
* Fix boundary check * Add unittest
* Fix boundary check * Add unittest
* Fix boundary check * Add unittest
Should fix #2088.
Details about this bug are discussed in this comment.
Related issues: #1014, #2088. Related PR: #1091 (which is approximately correct when
iv->dom->min == 0
).CC: @tqchen @were.