Skip to content

Commit aaa6c44

Browse files
committed
Update on "[ExecuTorch] Add broadcasting support to optimized op_div"
Summary: Similar to broadcast support in op_mul Test Plan: Tests added Reviewers: Subscribers: Tasks: Tags: cc larryliu0820 manuelcandales Differential Revision: [D69491815](https://our.internmc.facebook.com/intern/diff/D69491815) [ghstack-poisoned]
2 parents 01adc65 + 1a23d93 commit aaa6c44

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

kernels/optimized/cpu/op_div.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,7 @@ Tensor& opt_div_out(
122122
} else if (selected_optimized_path != ElementwiseOptimizedPath::kNone) {
123123
// Reason for using alpha is becasuse handle_broadcast_elementwise
124124
// is used for add and sub as well:
125-
static constexpr const char op_name[] = "div.out";
126-
ET_SWITCH_REALB_TYPES(out_type, ctx, "mul.out", CTYPE, [&]() {
125+
ET_SWITCH_REALB_TYPES(out_type, ctx, "div.out", CTYPE, [&]() {
127126
if (selected_optimized_path ==
128127
ElementwiseOptimizedPath::kBroadcast2dBy1dReverseArguments ||
129128
selected_optimized_path ==

0 commit comments

Comments
 (0)