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 "Integrate torchgen exception boundary with ExecuTorch"
As of #7746, we build with exceptions by default, so we just need to use them.
TODO: presumably we need to manage rollout of the torchgen patch?
Differential Revision: [D67904052](https://our.internmc.facebook.com/intern/diff/D67904052/)
[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