Commit 8957131
authored
Fixed the type of x and y.
Force to keep the type of x and y consistent with the Gaussian filter weights.
Since the model output in fp16 mode is half type, this helps to avoid problems caused by inconsistent types of x and y.
After testing, it is now possible to train the model with fp16 mode, although the operation process of the mssim is still in fp32 mode.1 parent fd3d1b5 commit 8957131
1 file changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
103 | | - | |
104 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| |||
157 | 158 | | |
158 | 159 | | |
159 | 160 | | |
160 | | - | |
| 161 | + | |
161 | 162 | | |
0 commit comments