Skip to content

Commit

Permalink
formating
Browse files Browse the repository at this point in the history
  • Loading branch information
HectorSVC committed Jan 26, 2024
1 parent c8ea83d commit 3dbb95d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ bool ValidateContextCacheFilePath(bool is_qnn_ctx_model,
// always try the path set by user first, it's the only way to set it if load model from memory
if (!customer_context_cache_path.empty()) {
context_cache_path = ToPathString(customer_context_cache_path);
} else if (!model_pathstring.empty()) { // model loaded from file
} else if (!model_pathstring.empty()) { // model loaded from file
if (is_qnn_ctx_model) {
// it's a context cache model, just use the model path
context_cache_path = model_pathstring;
Expand Down
3 changes: 1 addition & 2 deletions onnxruntime/test/providers/qnn/qnn_ep_context_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ TEST_F(QnnHTPBackendTests, QnnContextBinaryMultiPartitionSupport1) {
QnnContextBinaryMultiPartitionTestBody(single_ep_node);
}


// Test that models with 2 non-quantized Add nodes and 2 quantized Add nodes can still generate the context binary
// The generated Onnx model has 2 Add nodes and 1 EPContext nodes
TEST_F(QnnHTPBackendTests, QnnContextBinaryMultiPartitionSupport2) {
Expand Down Expand Up @@ -395,7 +394,7 @@ TEST_F(QnnHTPBackendTests, QnnContextBinaryCacheNonEmbedModeTest) {
ORT_THROW("Error reading model");
}

Ort::SessionOptions so; // No need to set the context file path in so since it's load from file
Ort::SessionOptions so; // No need to set the context file path in so since it's load from file
so.AppendExecutionProvider("QNN", provider_options);
#ifdef _WIN32
std::wstring ctx_model_file(context_binary_file.begin(), context_binary_file.end());
Expand Down

0 comments on commit 3dbb95d

Please sign in to comment.