We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3d25b9 commit d053dc0Copy full SHA for d053dc0
onnxruntime/core/providers/coreml/coreml_execution_provider.cc
@@ -70,6 +70,10 @@ CoreMLExecutionProvider::GetCapability(const onnxruntime::GraphViewer& graph_vie
70
[](unsigned char c) { return !std::isalnum(c); })) {
71
user_provided_key = std::to_string(std::hash<std::string>{}(user_provided_key));
72
}
73
+ // invalid cache-key
74
+ if (user_provided_key.size() == 0){
75
+ user_provided_key = std::to_string(model_hash);
76
+ }
77
} else {
78
// model_hash is a 64-bit hash value of model_path if model_path is not empty,
79
// otherwise it hashes the graph input names and all the node output names.
0 commit comments