From 2f69becd301831a8f9c37df1a0c55c55dd99e58f Mon Sep 17 00:00:00 2001 From: Keyon Jie Date: Wed, 17 Jan 2024 15:27:53 -0800 Subject: [PATCH] Compile model with params suggested from the NPU team compile model with enable-sep-transposed-conv=true and enable-se-ptrs-operations=true Signed-off-by: Keyon Jie --- IENetwork.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/IENetwork.cpp b/IENetwork.cpp index 5f3ff6ae9..57f5c9036 100644 --- a/IENetwork.cpp +++ b/IENetwork.cpp @@ -38,7 +38,9 @@ bool IENetwork::loadNetwork() { ALOGD("Creating infer request for Intel Device Type : %s", deviceStr.c_str()); if (mNetwork) { - compiled_model = ie.compile_model(mNetwork, deviceStr); + ov::AnyMap config; + config["NPU_COMPILATION_MODE_PARAMS"] = "enable-se-ptrs-operations=true enable-sep-transposed-conv=true"; + compiled_model = ie.compile_model(mNetwork, deviceStr, config); ALOGD("LoadNetwork is done...."); #if __ANDROID__