Skip to content

Commit 3b1e540

Browse files
author
KeDengMS
committed
Minor updates for better debugging
1 parent 5d8730f commit 3b1e540

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

onnxruntime/core/providers/nuphar/common/nuphar_subgraph.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,6 @@ struct NupharSubgraphUnit {
8383
return nodes.size() == 1;
8484
}
8585

86-
const std::string& Name() const {
87-
return nodes.front()->Name();
88-
}
89-
9086
std::string UniqueId() const {
9187
return std::to_string(id_);
9288
}

onnxruntime/core/providers/nuphar/runtime/exec_block.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ void CreateExecBlock(std::vector<std::unique_ptr<ExecBlock>>& exec_blocks,
1818
bool /*enable_tiling*/) {
1919
if (subgraph.IsSingleNode() && subgraph.nodes.front()->OpType() == "Scan") {
2020
exec_blocks.push_back(
21-
std::move(onnxruntime::make_unique<LoopExecBlock>(func_info, "nuphar_exec_" + subgraph.Name())));
21+
std::move(onnxruntime::make_unique<LoopExecBlock>(func_info, "nuphar_exec_" + subgraph.UniqueId())));
2222
} else {
2323
exec_blocks.push_back(
24-
std::move(onnxruntime::make_unique<BasicExecBlock>(func_info, "nuphar_exec_" + subgraph.Name())));
24+
std::move(onnxruntime::make_unique<BasicExecBlock>(func_info, "nuphar_exec_" + subgraph.UniqueId())));
2525
}
2626
}
2727

0 commit comments

Comments
 (0)