File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -562,6 +562,11 @@ if(EXECUTORCH_BUILD_PYBIND)
562
562
list (APPEND _dep_libs custom_ops )
563
563
endif ()
564
564
565
+ if (EXECUTORCH_BUILD_QUANTIZED )
566
+ target_link_options_shared_lib (quantized_ops_lib )
567
+ list (APPEND _dep_libs quantized_kernels quantized_ops_lib )
568
+ endif ()
569
+
565
570
# TODO(larryliu): Fix macOS 2 dylibs having 2 sets of static variables issue
566
571
if (EXECUTORCH_BUILD_CUSTOM_OPS_AOT AND NOT APPLE )
567
572
list (APPEND _dep_libs custom_ops_aot_lib )
Original file line number Diff line number Diff line change @@ -375,6 +375,7 @@ def run(self):
375
375
if ShouldBuild .pybindings :
376
376
cmake_args += [
377
377
"-DEXECUTORCH_BUILD_PYBIND=ON" ,
378
+ "-DEXECUTORCH_BUILD_QUANTIZED=ON" , # add quantized ops to pybindings.
378
379
]
379
380
build_args += ["--target" , "portable_lib" ]
380
381
if ShouldBuild .xnnpack :
You can’t perform that action at this time.
0 commit comments