Commit bc76ab1
authored
Fix the presicion when weights are in bfloat16 for GroupNorm (#1587)
* fix the presicion when weights are in bfloat16
* use channles first format for full bf16 mode of GroupNorm
* minor fix
* revert use channles first format for full bf16 mode of GroupNorm
* fix format
* use first CL implementation for GroupNorm forward when parameters are in bf16
* remove using first CL implementation
* eliminate redundant code
* minor changes
* add data type checks for GroupNorm backward1 parent d8723df commit bc76ab1
File tree
3 files changed
+483
-249
lines changed- csrc/cpu/aten
- kernels
- tests/cpu
3 files changed
+483
-249
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
139 | 146 | | |
140 | 147 | | |
141 | 148 | | |
| |||
0 commit comments