Skip to content

Commit

Permalink
minor modification
Browse files Browse the repository at this point in the history
  • Loading branch information
chilo-ms committed Feb 6, 2025
1 parent 0c10cd4 commit 3360dfd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion onnxruntime/core/optimizer/graph_optimizer_registry.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ common::Status GraphOptimizerRegistry::Register(std::unique_ptr<GraphTransformer
common::Status GraphOptimizerRegistry::AddPredefinedOptimizerNames(std::vector<std::string>& optimizer_names) {
for (auto name : optimizer_names) {
if (name_to_transformer_map_.find(name) != name_to_transformer_map_.end()) {
return ORT_MAKE_STATUS(ONNXRUNTIME, FAIL, "This transformer name is already added " + name);
LOGS(*logger_, WARNING) << "This transformer name is already added " << name;
return Status::OK();
}
name_to_transformer_map_[name] = nullptr; // The transformer will be instantizted only when EP requests it
}
Expand Down

0 comments on commit 3360dfd

Please sign in to comment.