Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
wejoncy committed Dec 16, 2024
1 parent 5f56c3b commit 81c2b9e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ CoreMLExecutionProvider::GetCapability(const onnxruntime::GraphViewer& graph_vie
HashValue model_hash;
int metadef_id = metadef_id_generator_.GenerateId(graph_viewer, model_hash);
std::string user_provide_hash;
if (graph_viewer.GetGraph().GetModel().MetaData().count("model_hash") > 0) {
user_provide_hash = graph_viewer.GetGraph().GetModel().MetaData().at("model_hash");
if (graph_viewer.GetGraph().GetModel().MetaData().count("CACHE_KEY") > 0) {
user_provide_hash = graph_viewer.GetGraph().GetModel().MetaData().at("CACHE_KEY");
}
return MakeString(user_provide_hash, "_", COREML, "_", model_hash, "_", metadef_id);
};
Expand Down

0 comments on commit 81c2b9e

Please sign in to comment.