MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / force_target_to_graph

Function force_target_to_graph

src/graph/Utils.cpp:53–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void force_target_to_graph(Graph &g, Target target)
54{
55 auto &nodes = g.nodes();
56 for (auto &node : nodes)
57 {
58 if (node)
59 {
60 node->set_assigned_target(target);
61 }
62 }
63
64 auto &tensors = g.tensors();
65 for (auto &tensor : tensors)
66 {
67 if (tensor)
68 {
69 tensor->desc().target = target;
70 }
71 }
72}
73
74PassManager create_default_pass_manager(Target target, const GraphConfig &cfg)
75{

Callers 1

finalize_graphMethod · 0.85

Calls 1

set_assigned_targetMethod · 0.80

Tested by

no test coverage detected