Skip to content

Commit

Permalink
remove extra check
Browse files Browse the repository at this point in the history
  • Loading branch information
wejoncy committed Dec 16, 2024
1 parent b57aa28 commit 723b2dd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions onnxruntime/core/providers/coreml/builders/model_builder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,6 @@ std::string GetModelOutputPath(const CoreMLOptions& coreml_options,
// onnxruntime/core/providers/coreml/coreml_execution_provider.cc::gen_metadef_name
// int metadef_id = metadef_id_generator_.GenerateId(graph_viewer, model_hash);
// MakeString(user_provide_key, "_", COREML, "_", model_hash, "_", metadef_id);
ORT_ENFORCE(std::count(subgraph_name.begin(), subgraph_name.end(), '_') == 3,
"Unexpected graph name format: ", subgraph_name);
std::string_view cache_key = std::string_view(subgraph_name).substr(0, subgraph_name.find_first_of("_"));
path = MakeString(std::string(coreml_options.ModelCachePath()), "/", cache_key);
ORT_THROW_IF_ERROR(Env::Default().CreateFolder(path));
Expand Down

0 comments on commit 723b2dd

Please sign in to comment.