Commit 18bcf62
inductor: promote half/bfloat16 constant to float for cpu vectorization path (pytorch#105440)
As scalar path, we should also promote half/bfloat16 constant to float for better accuracy, after this PR, the TIMM ```dm_nfnet``` model amp path can be passed.
Pull Request resolved: pytorch#105440
Approved by: https://github.com/jgong5, https://github.com/jansel1 parent 7ddb66e commit 18bcf62
File tree
2 files changed
+13
-0
lines changed- test/inductor
- torch/_inductor/codegen
2 files changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1977 | 1977 | | |
1978 | 1978 | | |
1979 | 1979 | | |
| 1980 | + | |
| 1981 | + | |
| 1982 | + | |
| 1983 | + | |
| 1984 | + | |
| 1985 | + | |
| 1986 | + | |
| 1987 | + | |
| 1988 | + | |
1980 | 1989 | | |
1981 | 1990 | | |
1982 | 1991 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2094 | 2094 | | |
2095 | 2095 | | |
2096 | 2096 | | |
| 2097 | + | |
| 2098 | + | |
| 2099 | + | |
| 2100 | + | |
2097 | 2101 | | |
2098 | 2102 | | |
2099 | 2103 | | |
| |||
0 commit comments