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
^
By removing `header_namespace` and depending on #include "selected_op_variants.h" instead of the full path #include <executorch/kernels/portable/cpu/selected_op_variants.h>
Note:
expose_operator_symbols=False only works in xplat, so add a failure message for that too. I don't think we should recommend for users to set it to true, as it prevents a library from linking multiple executorch_generated_libs (symbols will clash).
Differential Revision: [D75082395](https://our.internmc.facebook.com/intern/diff/D75082395/)
[ghstack-poisoned]
deps: Additinal deps of the main C++ library. Needs to be in either `//executorch` or `//caffe2` module.
628
614
platforms: platforms args to runtime.cxx_library (only used when in xplat)
629
615
manual_registration: if true, generate RegisterKernels.cpp and RegisterKernels.h.
630
-
use_default_aten_ops_lib: If `aten_mode` is True AND this flag is True, use `torch_mobile_all_ops_et` for ATen operator library.
616
+
use_default_aten_ops_lib: If `aten_mode` is True AND this flag is True,
617
+
use `torch_mobile_all_ops_et` for ATen operator library.
631
618
xplat_deps: Additional xplat deps, can be used to provide custom operator library.
632
619
fbcode_deps: Additional fbcode deps, can be used to provide custom operator library.
633
620
compiler_flags: compiler_flags args to runtime.cxx_library
634
-
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.
635
-
feature: Product-Feature Hierarchy (PFH). For internal use only, required for FoA in production. See: https://fburl.com/wiki/2wzjpyqy
636
-
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.
621
+
dtype_selective_build: In additional to operator selection, dtype selective build
622
+
further selects the dtypes for each operator. Can be used with model or dict
623
+
selective build APIs, where dtypes can be specified.
624
+
feature: Product-Feature Hierarchy (PFH). For internal use only, required
625
+
for FoA in production. See: https://fburl.com/wiki/2wzjpyqy
626
+
expose_operator_symbols: By default, fvisibility=hidden is set for executorch kernel
627
+
libraries built with dtype selective build. This options removes the compiler
628
+
flag and allows operators to be called outside of the kernel registry.
629
+
NOTE: It is not recommended to set this to True, as symbols may clash (duplicate
630
+
symbols errors) if multiple executorch_generated_libs are included by a parent library.
631
+
support_exceptions: enable try/catch wrapper around operator implementations
632
+
to make sure exceptions thrown will not bring down the process. Disable if your
633
+
use case disables exceptions in the build.
637
634
"""
638
635
iffunctions_yaml_targetandaten_mode:
639
636
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