30 for (uint32_t n = 0; n < g->nodes()->
size(); ++n)
32 if (
auto output =
dynamic_cast<CircleOutput *
>(g->nodes()->at(n)))
34 if (output->indexed() && output->index() == index)
47 for (uint32_t n = 0; n < g->nodes()->
size(); ++n)
49 if (
auto input =
dynamic_cast<CircleInput *
>(g->nodes()->at(n)))
51 if (input->indexed() && input->index() == index)
Graph-level Output Metadata.
CircleNode for Output of the Graph.
void index(const loco::GraphOutputIndex &index)
uint32_t GraphOutputIndex
CircleOutput * output_node(loco::Graph *g, const loco::GraphOutputIndex &index)
Find a CircleOutput node with a given output index.
CircleInput * input_node(loco::Graph *g, const loco::GraphInputIndex &index)
Find a Pull node with a given input index.
void link(loco::GraphOutput *, CircleOutput *)
Link GraphOutput with CircleOutput node.