Commit 201b964
Update embedding_forward_quantized_cpu_template.cpp to use initialized output memory instead of uninitialized (pytorch#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 ecf2ac9 commit 201b964
File tree
1 file changed
+6
-0
lines changed- fbgemm_gpu/codegen/inference
1 file changed
+6
-0
lines changedLines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
213 | 216 | | |
214 | 217 | | |
215 | 218 | | |
| |||
220 | 223 | | |
221 | 224 | | |
222 | 225 | | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
223 | 229 | | |
224 | 230 | | |
225 | 231 | | |
| |||
0 commit comments