Skip to content

Commit 6f2e5f6

Browse files
Zonglin Pengzonglinpeng
authored andcommitted
Populate cadence cpu ops (#7165)
Summary: quantized ops in CPU flow are not fully migrated. Adding them all in this PR - quantized_linear_per_tensor_out Test Plan: python3 -m examples.cadence.operators.quantized_linear_op Reviewed By: hsharma35, mcremon-meta Differential Revision: D66726864 Pulled By: zonglinpeng
1 parent 21ec361 commit 6f2e5f6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

backends/cadence/reference/operators/quantized_ops.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,12 @@ inline __attribute__((always_inline)) void quantized_linear_per_channel_(
8989
// weight comes in shape [out_dim, in_dim]
9090
// output comes in empty with shape [leading_dims, out_dim]
9191
// Perform matrix multiply (M x N) x (N x P)' => M x P
92+
<<<<<<< HEAD
9293
int64_t leading_dims =
9394
executorch::runtime::getLeadingDims(src, src.dim() - 1);
95+
=======
96+
int64_t leading_dims = getLeadingDims(src, src.dim() - 1);
97+
>>>>>>> 74283da5a (Populate cadence cpu ops (#7165))
9498
const int64_t out_dim = weight.size(0); // = out_dim
9599
const int64_t in_dim = weight.size(1); // = in_dim
96100

0 commit comments

Comments
 (0)