You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update on "Reuse GELU implementation from PyTorch core"
kernels/optimized doesn't need to support embedded systems, so it can just take a header-only dep on PyTorch.
Note that, because we will pick up Sleef internally and ignore it
externally thanks to ATen vec, this PR gets to enable optimized GELU in OSS.
Testing: CI to make sure this doesn't break mobile build modes; happy to take advice on anything not currently covered that might break.
Differential Revision: [D66335522](https://our.internmc.facebook.com/intern/diff/D66335522/)
[ghstack-poisoned]
kernels: C++ kernels for these custom ops. They need to be implemented using ATen/c10 basics.
301
308
deps: dependencies of the generated library.
309
+
support_exceptions: enable try/catch wrapper around operator implemntations to make sure exceptions thrown will not bring down the process. Disable if your use case disables exceptions in the build.
"""Emits 0-3 C++ library targets (in fbcode or xplat) containing code to
453
463
dispatch the operators specified in the provided yaml files.
454
464
@@ -497,6 +507,7 @@ def executorch_generated_lib(
497
507
compiler_flags: compiler_flags args to runtime.cxx_library
498
508
dtype_selective_build: In additional to operator selection, dtype selective build further selects the dtypes for each operator. Can be used with model or dict selective build APIs, where dtypes can be specified. Note: this is only available in xplat.
499
509
feature: Product-Feature Hierarchy (PFH). For internal use only, required for FoA in production. See: https://fburl.com/wiki/2wzjpyqy
510
+
support_exceptions: enable try/catch wrapper around operator implemntations to make sure exceptions thrown will not bring down the process. Disable if your use case disables exceptions in the build.
500
511
"""
501
512
iffunctions_yaml_targetandaten_mode:
502
513
fail("{} is providing functions_yaml_target in ATen mode, it will be ignored. `native_functions.yaml` will be the source of truth.".format(name))
0 commit comments