forked from apache/tvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Relay] Stop ToMixedPrecision when constant is out of dtype range (ap…
…ache#15461) * [Relay] Stop ToMixedPrecision when constant is out of dtype range 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. * Fix lint
- Loading branch information
Showing
2 changed files
with
88 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters