Skip to content

Commit dc80aa5

Browse files
MayureshV1Copilot
authored andcommitted
Update onnxruntime/core/providers/openvino/openvino_execution_provider.cc
Add Metadata file path to error string Co-authored-by: Copilot <[email protected]>
1 parent 589d9c8 commit dc80aa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

onnxruntime/core/providers/openvino/openvino_execution_provider.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ common::Status OpenVINOExecutionProvider::Compile(
117117
fs::path metadata_filename = context_model_file_path.filename().stem().string() + "_metadata.bin";
118118
fs::path metadata_file_path = context_model_file_path.parent_path() / metadata_filename;
119119
std::ifstream file(metadata_file_path, std::ios::binary);
120-
ORT_RETURN_IF_NOT(file, "Metadata file was not found");
120+
ORT_RETURN_IF_NOT(file, "Metadata file was not found: " + metadata_file_path.string());
121121
shared_context_->shared_weights.metadata_filepath = metadata_file_path;
122122
file >> metadata;
123123
}

0 commit comments

Comments
 (0)