Commit 2f15704
Update embedding_forward_quantized_cpu_template.cpp to use initialized output memory instead of uninitialized (#5054)
Summary:
X-link: facebookresearch/FBGEMM#2064
We observe, if the memory of output is uninitialized, the output may be garbage.
This is because certain memory is untouched. The proposed fix is a quick workaround, but it will be more efficient to directly fill the untouched memory with zero.
Reviewed By: sryap
Differential Revision: D854472981 parent 51210b8 commit 2f15704
File tree
1 file changed
+10
-3
lines changed- fbgemm_gpu/codegen/inference
1 file changed
+10
-3
lines changedLines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
213 | 217 | | |
214 | 218 | | |
215 | 219 | | |
| |||
219 | 223 | | |
220 | 224 | | |
221 | 225 | | |
222 | | - | |
223 | | - | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
224 | 231 | | |
225 | 232 | | |
226 | 233 | | |
| |||
0 commit comments