Skip to content

Commit 94fb625

Browse files
committed
Update base for Update on "[Executorch] optimized sigmoid"
basically use exp approximation using sleef instead of std::exp Differential Revision: [D64156864](https://our.internmc.facebook.com/intern/diff/D64156864/) [ghstack-poisoned]
1 parent aaf79a5 commit 94fb625

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

kernels/optimized/lib_defs.bzl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ def get_vec_preprocessor_flags():
1919
if not runtime.is_oss:
2020
# various ovr_configs are not available in oss
2121
preprocessor_flags = select({
22+
"ovr_config//os:linux-x86_64": [
23+
"-DET_BUILD_ARM_VEC256_WITH_SLEEF",
24+
] if not runtime.is_oss else [],
2225
"ovr_config//os:iphoneos": [
2326
"-DET_BUILD_ARM_VEC256_WITH_SLEEF",
2427
] if not runtime.is_oss else [],

0 commit comments

Comments
 (0)