Skip to content

Commit e3953c5

Browse files
committed
fix
1 parent b0d495f commit e3953c5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

kernels/quantized/cpu/embeddingxb.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9+
#include <executorch/kernels/quantized/cpu/embeddingxb.h>
910
#include <executorch/runtime/kernel/kernel_includes.h>
1011
#include <algorithm>
1112
#include <cassert>

kernels/quantized/test/op_embedding2b_test.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,14 +169,13 @@ TEST(OpQuantizedEmbedding2bTest, TestGroupWiseQuantizedEmbeddingDeath3) {
169169
int64_t quant_min = -2;
170170
int64_t quant_max = 1;
171171

172-
Tensor weight_scales =
173-
tf.make({2, 3}, {1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0});
174-
Tensor weight_zero_points = tf.make({2, 3}, {0, 0, 0, 0, 0, 0, 0, 0, 0});
172+
Tensor weight_scales = tf.make({2, 3}, {1.0, 1.0, 1.0, 1.0, 1.0, 1.0});
173+
Tensor weight_zero_points = tf.make({2, 3}, {0, 0, 0, 0, 0, 0});
175174
Tensor qweight = tfb.make({2, 1}, {236, 134, 228});
176175
Tensor indices = tfl.make({2}, {0, 2});
177176
Tensor out = tf.zeros({2, 8});
178177

179-
// scales/zeros imply groupsize 3, which does not divide embed dimension from
178+
// scales/zeros imply 3 groups, which does not divide embed dimension from
180179
// qvals (8)
181180
ET_EXPECT_DEATH(
182181
quantized_embedding_2bit_out(

0 commit comments

Comments
 (0)