38 return circleinput->indexed();
46 auto circleinput = loco::must_cast<const luci::CircleInput *>(node);
47 return circleinput->index();
57 return circleoutput->indexed();
65 auto circleoutput = loco::must_cast<const luci::CircleOutput *>(node);
66 return circleoutput->index();
75CircleDialect::CircleDialect()
77 service<loco::GraphInputIndexQueryService>(std::make_unique<GiiQueryServiceImpl>());
78 service<loco::GraphOutputIndexQueryService>(std::make_unique<GoiQueryServiceImpl>());
79 service<logo::DeadNodeQueryService>(std::make_unique<DeadNodeQueryServiceImpl>());
Logical unit of computation.
A singleton for Circle Dialect.
static loco::Dialect * get(void)
CircleNode for Output of the Graph.
uint32_t GraphOutputIndex
virtual GraphOutputIndex index(const Node *node) const =0
virtual bool associated(const Node *node) const =0
Check whether a given node is associated with any Graph-level output.