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
Pull Request resolved: #11016
^
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-source-id: 285224490
deps: Additinal deps of the main C++ library. Needs to be in either `//executorch` or `//caffe2` module.
628
612
platforms: platforms args to runtime.cxx_library (only used when in xplat)
629
613
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.
614
+
use_default_aten_ops_lib: If `aten_mode` is True AND this flag is True,
615
+
use `torch_mobile_all_ops_et` for ATen operator library.
631
616
xplat_deps: Additional xplat deps, can be used to provide custom operator library.
632
617
fbcode_deps: Additional fbcode deps, can be used to provide custom operator library.
633
618
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.
619
+
dtype_selective_build: In additional to operator selection, dtype selective build
620
+
further selects the dtypes for each operator. Can be used with model or dict
621
+
selective build APIs, where dtypes can be specified.
622
+
feature: Product-Feature Hierarchy (PFH). For internal use only, required
623
+
for FoA in production. See: https://fburl.com/wiki/2wzjpyqy
624
+
expose_operator_symbols: By default, fvisibility=hidden is set for executorch kernel
625
+
libraries built with dtype selective build. This options removes the compiler
626
+
flag and allows operators to be called outside of the kernel registry.
627
+
NOTE: It is not recommended to set this to True, as symbols may clash (duplicate
628
+
symbols errors) if multiple executorch_generated_libs are included by a parent library.
629
+
support_exceptions: enable try/catch wrapper around operator implementations
630
+
to make sure exceptions thrown will not bring down the process. Disable if your
631
+
use case disables exceptions in the build.
637
632
"""
638
633
iffunctions_yaml_targetandaten_mode:
639
634
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