Skip to content

Commit 8ac5670

Browse files
authored
[VitisAI] Remove unused function body handling in graph fusion (#26519)
### Description Vitis AI EP graph_fuse memory optimize. This PR removes unused function body handling code in the VitisAI graph fusion implementation. ### Changes - Removed unused function body handling in graph fusion (`onnxruntime/core/providers/vitisai/imp/graph.cc`) ### Context The function body handling code in the graph fusion logic was not being used and can be safely removed to simplify the implementation.
1 parent afcdd2b commit 8ac5670

File tree

1 file changed

+0
-6
lines changed
  • onnxruntime/core/providers/vitisai/imp

1 file changed

+0
-6
lines changed

onnxruntime/core/providers/vitisai/imp/graph.cc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -248,12 +248,6 @@ Node& graph_fuse(Graph& graph, const std::string& name,
248248
indexed_subgraph->SetMetaDef(std::move(meta_def));
249249

250250
auto& fused_node = graph.FuseSubGraph(*indexed_subgraph, name);
251-
auto function_body = fused_node.GetFunctionBody();
252-
if (function_body) {
253-
auto proto = function_body->Body().ToGraphProto();
254-
*proto->mutable_name() = name;
255-
fused_node.AddAttribute("body", *proto);
256-
}
257251
for (auto&& o : fused_node.OutputDefs()) {
258252
graph.UpdateProducerNode(o->Name(), fused_node.Index());
259253
}

0 commit comments

Comments
 (0)