Commit 0aacd9f
Fix EmbeddingQuantizeFloatToFloatOrHalfBenchmark (#5622)
Summary:
X-link: https://github.com/facebookresearch/FBGEMM/pull/2573
This PR fixes 3 issues in ``EmbeddingQuantizeFloatToFloatOrHalfBenchmark``:
1. Heap buffer overflow in the float16 output path
2. Incorrect elements_per_usec to count actual output elements
3. Fixing incorrect bytes_read to use 1 byte per input element (uint8_t) instead of sizeof(float)
Pull Request resolved: #5622
Reviewed By: cthi
Differential Revision: D100537012
Pulled By: q10
fbshipit-source-id: 77fcc097bd877af721040f2de410188cc0f5adb81 parent 2e3da8a commit 0aacd9f
1 file changed
Lines changed: 4 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 45 | + | |
| 46 | + | |
52 | 47 | | |
53 | 48 | | |
54 | 49 | | |
| |||
69 | 64 | | |
70 | 65 | | |
71 | 66 | | |
72 | | - | |
| 67 | + | |
73 | 68 | | |
74 | 69 | | |
75 | | - | |
| 70 | + | |
76 | 71 | | |
77 | 72 | | |
78 | 73 | | |
| |||
0 commit comments