MCPcopy Create free account
hub / github.com/OAID/Tengine / SameGraph

Method SameGraph

executor/lib/dev_allocator.cpp:43–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41namespace TEngine {
42
43void DevAllocator::SameGraph(Graph* graph, DevExecutor* dev_executor, std::vector<Subgraph*>& sub_list)
44{
45 Subgraph* sub_graph = new Subgraph(graph->GetName());
46
47 sub_graph->seq_nodes = graph->seq_nodes;
48 sub_graph->input_nodes = graph->input_nodes;
49 sub_graph->output_nodes = graph->output_nodes;
50
51 sub_graph->SetAttr("dev_executor", dev_executor);
52 sub_list.push_back(sub_graph);
53}
54
55void DevAllocator::PartitionGraph(GenericEngine* engine, GraphExecutor* graph_executor, Graph* graph,
56 std::vector<Subgraph*>& sub_list)

Callers

nothing calls this directly

Calls 2

GetNameMethod · 0.80
SetAttrMethod · 0.45

Tested by

no test coverage detected