Skip to content

Commit 5ab95b9

Browse files
committed
- Unit test can run on Linux
- Make function documentation clearer
1 parent ee05965 commit 5ab95b9

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

onnxruntime/core/providers/qnn/builder/qnn_backend_manager.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,9 @@ class QnnBackendManager : public std::enable_shared_from_this<QnnBackendManager>
219219
// For each node name, a mapping to the context handle will be created
220220
void ProcessContextFromBinListAsync(Qnn_ContextHandle_t handle, void* notifyParam);
221221

222-
// Sets the context priority to some defined value (if valid)
222+
// Sets the context priority to the given value, if valid
223223
Status SetContextPriority(ContextPriority context_priority);
224-
// Resets the context priority to context_priority_
224+
// Resets the context priority to the session default as defined by context_priority_
225225
Status ResetContextPriority();
226226

227227
private:

onnxruntime/test/providers/qnn/qnn_ep_context_test.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1649,7 +1649,6 @@ static void DumpModelWithSharedCtx(ProviderOptions provider_options,
16491649
Ort::Session session2(*ort_env, ToPathString(onnx_model_path2).c_str(), so);
16501650
}
16511651

1652-
#if defined(__aarch64__) || defined(_M_ARM64)
16531652
static void GetModelInputNames(const std::string& model_path,
16541653
std::vector<std::string>& input_names,
16551654
std::vector<std::string>& output_names,
@@ -1669,7 +1668,6 @@ static void GetModelInputNames(const std::string& model_path,
16691668
output_names.push_back(output->Name());
16701669
}
16711670
}
1672-
#endif
16731671

16741672
// 1. Create 2 QDQ models
16751673
// 2. Initialize 2 Ort sessions which share the same QNN EP from these 2 QDQ models

0 commit comments

Comments
 (0)