Skip to content

Commit c7f9e88

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 53f8a14 + f25833f commit c7f9e88

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

kernels/optimized/cpu/op_mul.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ Tensor& opt_mul_out(
130130
out.numel());
131131
});
132132
} else if (selected_optimized_path != ElementwiseOptimizedPath::kNone) {
133-
ScalarType out_type = out.scalar_type();
134133
ET_SWITCH_REALB_TYPES(out_type, ctx, "mul.out", CTYPE, [&]() {
135134
auto mul_lambda = [](auto x, auto y) { return x * y; };
136135
return torch::executor::handle_broadcast_elementwise<CTYPE>(

0 commit comments

Comments
 (0)