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
kernels: C++ kernels for these custom ops. They need to be implemented using ATen/c10 basics.
332
341
deps: dependencies of the generated library.
342
+
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.
"""Build portable lib from source. We build from source so that the generated header file,
415
+
"""Build portable lib from source. We build from source so that the generated header file,
405
416
selected_op_variants.h, can be used to selectively build the lib for different dtypes.
406
417
"""
407
418
@@ -479,7 +490,8 @@ def executorch_generated_lib(
479
490
kernel_deps= [],
480
491
dtype_selective_build=False,
481
492
feature=None,
482
-
expose_operator_symbols=False):
493
+
expose_operator_symbols=False,
494
+
support_exceptions=True):
483
495
"""Emits 0-3 C++ library targets (in fbcode or xplat) containing code to
484
496
dispatch the operators specified in the provided yaml files.
485
497
@@ -528,6 +540,7 @@ def executorch_generated_lib(
528
540
compiler_flags: compiler_flags args to runtime.cxx_library
529
541
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.
530
542
feature: Product-Feature Hierarchy (PFH). For internal use only, required for FoA in production. See: https://fburl.com/wiki/2wzjpyqy
543
+
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.
531
544
"""
532
545
iffunctions_yaml_targetandaten_mode:
533
546
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