Skip to content

Commit e82f3e4

Browse files
author
wejoncy
committed
fix
1 parent 773dce0 commit e82f3e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

onnxruntime/core/providers/coreml/coreml_execution_provider.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ CoreMLExecutionProvider::GetCapability(const onnxruntime::GraphViewer& graph_vie
6666
if (main_graph->GetModel().MetaData().count(kCOREML_CACHE_KEY) > 0) {
6767
user_provided_key = graph_viewer.GetGraph().GetModel().MetaData().at(kCOREML_CACHE_KEY);
6868
if (user_provided_key.size() > 32 ||
69-
std::any_if(user_provided_key.begin(), user_provided_key.end(),
69+
std::any_of(user_provided_key.begin(), user_provided_key.end(),
7070
[](unsigned char c) { return !std::isalnum(c); })) {
7171
user_provided_key = std::to_string(std::hash<std::string>{}(user_provided_key));
7272
}

0 commit comments

Comments
 (0)