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

[CODEGEN][OPENCL] Explicitly cast min/max operands #5090

Merged
merged 2 commits into from
Mar 18, 2020

Conversation

kazum
Copy link
Contributor

@kazum kazum commented Mar 18, 2020

OpenCL codegen needs explicit casts to min/max operands to avoid ambiguous call errors.
This will fix the reported bug in https://discuss.tvm.ai/t/relay-opencl-quantization-error/5963

#2821 looks no longer necessary, so this PR also reverts it.

@lixiaoquan @tqchen please help to review.

@tqchen tqchen merged commit c3b89b7 into apache:master Mar 18, 2020
@tqchen
Copy link
Member

tqchen commented Mar 18, 2020

Thanks @kazum !

trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Apr 16, 2020
* [CODEGEN][OPENCL] Explicitly cast min/max operands

* retrigger CI
zhiics pushed a commit to neo-ai/tvm that referenced this pull request Apr 17, 2020
* [CODEGEN][OPENCL] Explicitly cast min/max operands

* retrigger CI
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