Skip to content

Commit ccb11d0

Browse files
committed
fix redefinition
1 parent ce4b6f6 commit ccb11d0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

kernels/quantized/cpu/embeddingxb.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99
#include <executorch/runtime/kernel/kernel_includes.h>
1010
#include <algorithm>
11+
#include <cassert>
1112
#include <cinttypes>
1213
#include <cmath>
13-
#include <cassert>
1414

1515
namespace torch {
1616
namespace executor {

kernels/quantized/test/op_embedding2b_test.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,12 @@ TEST(OpQuantizedEmbedding2bTest, TestGroupWiseQuantizedEmbedding) {
8585
// 0, -1, -2, 0, -> 2, 1, 0, 2 -> 10 01 00 10 -> 146
8686
// -2, -1, 0, 1, -> 0, 1, 2, 3 -> 00 01 10 11 -> 27
8787

88-
Tensor qweight = tfb.make({3, 1}, {59, 146, 27});
88+
qweight = tfb.make({3, 1}, {59, 146, 27});
8989

90-
Tensor indices = tfl.make({3}, {0, 2, 1});
90+
indices = tfl.make({3}, {0, 2, 1});
9191

92-
Tensor out = tf.zeros({3, 4});
93-
Tensor expected = tf.make(
92+
out = tf.zeros({3, 4});
93+
expected = tf.make(
9494
{3, 4},
9595
{-1.5, 0.0, -2.0, -1.0, 0.0, 2.5, 3.0, 6.0, 0.0, -1.5, -6.0, -2.0});
9696

0 commit comments

Comments
 (0)