Commit 0bbb067
Add exception to float->int conversion test case (#2105)
Downcasting float32 values beyond target type value range is an
undefined behaviour according to torch documentation.
---------
Co-authored-by: Piotr Papierkowski <ppapierkowski@habana.ai>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Tadeusz Krawiec <72737249+tadkrawiec@users.noreply.github.com>
Co-authored-by: mengfei25 <mengfei.li@Intel.com>1 parent dbf6b0d commit 0bbb067
2 files changed
+4
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
658 | 658 | | |
659 | 659 | | |
660 | 660 | | |
661 | | - | |
662 | | - | |
663 | | - | |
664 | | - | |
665 | | - | |
| 661 | + | |
666 | 662 | | |
667 | 663 | | |
668 | 664 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1226 | 1226 | | |
1227 | 1227 | | |
1228 | 1228 | | |
1229 | | - | |
| 1229 | + | |
1230 | 1230 | | |
| 1231 | + | |
| 1232 | + | |
1231 | 1233 | | |
1232 | 1234 | | |
1233 | 1235 | | |
| |||
0 commit comments