We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 773dce0 commit e82f3e4Copy full SHA for e82f3e4
onnxruntime/core/providers/coreml/coreml_execution_provider.cc
@@ -66,7 +66,7 @@ CoreMLExecutionProvider::GetCapability(const onnxruntime::GraphViewer& graph_vie
66
if (main_graph->GetModel().MetaData().count(kCOREML_CACHE_KEY) > 0) {
67
user_provided_key = graph_viewer.GetGraph().GetModel().MetaData().at(kCOREML_CACHE_KEY);
68
if (user_provided_key.size() > 32 ||
69
- std::any_if(user_provided_key.begin(), user_provided_key.end(),
+ std::any_of(user_provided_key.begin(), user_provided_key.end(),
70
[](unsigned char c) { return !std::isalnum(c); })) {
71
user_provided_key = std::to_string(std::hash<std::string>{}(user_provided_key));
72
}
0 commit comments