Skip to content

Commit 81c2b9e

Browse files
author
wejoncy
committed
rename
1 parent 5f56c3b commit 81c2b9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

onnxruntime/core/providers/coreml/coreml_execution_provider.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ CoreMLExecutionProvider::GetCapability(const onnxruntime::GraphViewer& graph_vie
5959
HashValue model_hash;
6060
int metadef_id = metadef_id_generator_.GenerateId(graph_viewer, model_hash);
6161
std::string user_provide_hash;
62-
if (graph_viewer.GetGraph().GetModel().MetaData().count("model_hash") > 0) {
63-
user_provide_hash = graph_viewer.GetGraph().GetModel().MetaData().at("model_hash");
62+
if (graph_viewer.GetGraph().GetModel().MetaData().count("CACHE_KEY") > 0) {
63+
user_provide_hash = graph_viewer.GetGraph().GetModel().MetaData().at("CACHE_KEY");
6464
}
6565
return MakeString(user_provide_hash, "_", COREML, "_", model_hash, "_", metadef_id);
6666
};

0 commit comments

Comments
 (0)