Skip to content

Commit a1ed265

Browse files
mcremon-metafacebook-github-bot
authored andcommitted
Allow softmax and log_softmax to operate on any dimension (#5694)
Summary: Pull Request resolved: #5694 Use the portable implementation for `dim != -1`, simplified to only floats. Make the optimized cases fallback to the CPU impl. Reviewed By: manuelcandales Differential Revision: D63430960 fbshipit-source-id: ec2d56a60d2b064744383a2f1266dee7600fa884
1 parent e172c5c commit a1ed265

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kernels/portable/cpu/util/targets.bzl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def define_common_targets():
205205
"//executorch/runtime/core/exec_aten/util:tensor_util",
206206
":broadcast_util",
207207
],
208-
visibility = ["//executorch/kernels/portable/cpu/...", "//executorch/kernels/quantized/..."],
208+
visibility = ["//executorch/kernels/portable/cpu/...", "//executorch/kernels/quantized/...", "@EXECUTORCH_CLIENTS"],
209209
)
210210

211211
runtime.cxx_library(
@@ -253,5 +253,6 @@ def define_common_targets():
253253
"//executorch/extension/llm/custom_ops/...",
254254
"//executorch/kernels/portable/cpu/...",
255255
"//executorch/kernels/quantized/...",
256+
"@EXECUTORCH_CLIENTS",
256257
],
257258
)

0 commit comments

Comments
 (0)