Skip to content

Conversation

@echuraev
Copy link
Contributor

@echuraev echuraev commented Aug 2, 2023

In some layers, e.g. Clip, we might have a compilation error in the case when operation takes on the input a constant which is out of target data type range.

To prevent such situation, a new method was introduced. It compares values of constant attributes with the range of the target data type. In case if the value is out of range, then float32 will be used.

cc: @AndrewZhaoLuo, @elvin-n

In some layers, e.g. Clip, we might have a compilation error in the
case when operation takes on the input a constant which is out of
target data type range.

To prevent such situation, a new method was introduced. It compares
values of constant attributes with the range of the target data type. In
case if the value is out of range then float32 will be used.
@tvm-bot
Copy link
Collaborator

tvm-bot commented Aug 2, 2023

Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.

Generated by tvm-bot

@echuraev echuraev merged commit 0e905aa into apache:main Aug 3, 2023
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