Skip to content

Commit 3029ca6

Browse files
committed
Update on "[Executorch] Refactor op_mul's broadcasting utils"
Summary: Refactoring broadcast handling utils that were added for op_mul. This is in prepartion use these utils to handle broadcast for other ops such as add, sub, div. Plus remove a redundant test Test Plan: optimized_kernels_test in CI Reviewers: Subscribers: Tasks: Tags: cc larryliu0820 manuelcandales Differential Revision: [D69491816](https://our.internmc.facebook.com/intern/diff/D69491816) [ghstack-poisoned]
2 parents aedea37 + ebf62fe commit 3029ca6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

kernels/optimized/cpu/binary_ops.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ Tensor& handle_last_dim_broadcast_elementwise(
199199
const Tensor& b,
200200
Tensor& out,
201201
const ElementwiseOptimizedPath selected_optimized_path) {
202-
ScalarType out_type = out.scalar_type();
203202
const Tensor* lhs;
204203
const Tensor* rhs;
205204
if (selected_optimized_path ==

0 commit comments

Comments
 (0)