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

Update is_floating_point to handle bfloat16 #7133

Merged
merged 5 commits into from
Dec 19, 2020

Conversation

TylerADavis
Copy link
Contributor

Thanks for contributing to TVM! Please refer to guideline https://tvm.apache.org/docs/contribute/ for useful information and tips. After the pull request is submitted, please request code reviews from Reviewers by @ them in the pull request thread.

The current implementation of is_floating_point() is based on the Pytorch Documentation, but it turns out that the documentation does not accurately describe the function's behavior. This PR will enable is_floating_point() to properly handle bfloat16 once support is added for the bfloat16 dtype.

I am unable to test this functionality as the PyTorch frontend does not currently support bfloat16, giving the error message

NotImplementedError: input_type bfloat16 is not handled yet

@masahi masahi merged commit 786a253 into apache:main Dec 19, 2020
TusharKanekiDey pushed a commit to TusharKanekiDey/tvm that referenced this pull request Jan 20, 2021
* Add div_ and is_floating_point operators

* Add handling of exprs to op, update tests

* Properly handle bfloat16 in is_floating_point

* Revert test changes

* revert whitespace changes
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request Jan 21, 2021
* Add div_ and is_floating_point operators

* Add handling of exprs to op, update tests

* Properly handle bfloat16 in is_floating_point

* Revert test changes

* revert whitespace changes
electriclilies pushed a commit to electriclilies/tvm that referenced this pull request Feb 18, 2021
* Add div_ and is_floating_point operators

* Add handling of exprs to op, update tests

* Properly handle bfloat16 in is_floating_point

* Revert test changes

* revert whitespace changes
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