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.
299
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.
"""Build portable lib from source. We build from source so that the generated header file,
382
+
"""Build portable lib from source. We build from source so that the generated header file,
372
383
selected_op_variants.h, can be used to selectively build the lib for different dtypes.
373
384
"""
374
385
@@ -446,7 +457,8 @@ def executorch_generated_lib(
446
457
kernel_deps= [],
447
458
dtype_selective_build=False,
448
459
feature=None,
449
-
expose_operator_symbols=False):
460
+
expose_operator_symbols=False,
461
+
support_exceptions=True):
450
462
"""Emits 0-3 C++ library targets (in fbcode or xplat) containing code to
451
463
dispatch the operators specified in the provided yaml files.
452
464
@@ -495,6 +507,7 @@ def executorch_generated_lib(
495
507
compiler_flags: compiler_flags args to runtime.cxx_library
496
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.
497
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.
498
511
"""
499
512
iffunctions_yaml_targetandaten_mode:
500
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