From e55f7246c4e24163a7508812335ab750ec9ac55a Mon Sep 17 00:00:00 2001 From: Paco Wong Date: Thu, 11 Apr 2024 11:17:41 +0800 Subject: [PATCH 1/2] Update operator sets --- .../apple/hws_mobile_package.required_operators.config | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/ci_build/github/apple/hws_mobile_package.required_operators.config b/tools/ci_build/github/apple/hws_mobile_package.required_operators.config index 061da62f0a972..09a8b2be353ae 100644 --- a/tools/ci_build/github/apple/hws_mobile_package.required_operators.config +++ b/tools/ci_build/github/apple/hws_mobile_package.required_operators.config @@ -10,3 +10,10 @@ com.microsoft;1;DynamicQuantizeMatMul,FusedConv,FusedGemm,FusedMatMul,Gelu,MatMu # NHWC transformer also uses this, so assuming it's valuable enough to include com.microsoft;1;QLinearLeakyRelu + +# Hanwang HWR operators +ai.onnx;13;ConvInteger +com.microsoft;1;DynamicQuantizeLSTM +ai.onnx;6;Relu +ai.onnx;11;AveragePool,ConvTranspose,Split,ReduceMin,ReduceMean,ReduceMax,ReduceSum,ReduceProd,Clip,Ceil,Round +ai.onnx;8;Min,Max From 1645c21f4c1f2484de817155c8cd18656fd5f2b7 Mon Sep 17 00:00:00 2001 From: Paco Wong Date: Thu, 11 Apr 2024 11:18:33 +0800 Subject: [PATCH 2/2] Never search for packages in the system --- tools/ci_build/build.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/ci_build/build.py b/tools/ci_build/build.py index 41bcef33bd415..deaa4f9a53053 100644 --- a/tools/ci_build/build.py +++ b/tools/ci_build/build.py @@ -1019,6 +1019,7 @@ def generate_build_tree( "-Donnxruntime_BUILD_OBJC=" + ("ON" if args.build_objc else "OFF"), "-Donnxruntime_BUILD_SHARED_LIB=" + ("ON" if args.build_shared_lib else "OFF"), "-Donnxruntime_BUILD_APPLE_FRAMEWORK=" + ("ON" if args.build_apple_framework else "OFF"), + "-DFETCHCONTENT_TRY_FIND_PACKAGE_MODE=NEVER", #PACO "-Donnxruntime_USE_DNNL=" + ("ON" if args.use_dnnl else "OFF"), "-Donnxruntime_USE_NNAPI_BUILTIN=" + ("ON" if args.use_nnapi else "OFF"), "-Donnxruntime_USE_RKNPU=" + ("ON" if args.use_rknpu else "OFF"), @@ -1792,7 +1793,7 @@ def build_targets(args, cmake_path, build_dir, configs, num_parallel_jobs, targe if args.android: env["ANDROID_SDK_ROOT"] = args.android_sdk_path env["ANDROID_NDK_HOME"] = args.android_ndk_path - cmd_args += ['--verbose'] + # cmd_args += ['--verbose'] print(cmd_args) print(env) run_subprocess(cmd_args, env=env)