25struct CircleIfOutGraphs
38 CircleIfOutGraphs ret_out;
47 auto then_graph = circle_if->then_graph();
48 auto else_graph = circle_if->else_graph();
49 assert(then_graph !=
nullptr);
50 assert(else_graph !=
nullptr);
56 assert(then_outputs.size() == else_outputs.size());
57 assert(index <
static_cast<int32_t
>(then_outputs.size()));
62 auto then_graph_outputs = then_graph->outputs();
63 auto else_graph_outputs = else_graph->outputs();
64 assert(then_graph_outputs->size() == else_graph_outputs->size());
66 ret_out.then_graph_output = then_graph_outputs->at(then_out->index());
67 ret_out.else_graph_output = else_graph_outputs->at(else_out->index());
82 assert(*
graphs.then_graph_output->shape() == *
graphs.else_graph_output->shape());
83 return *
graphs.then_graph_output->shape();
91 assert(
graphs.then_graph_output->dtype() ==
graphs.else_graph_output->dtype());
92 return graphs.then_graph_output->dtype();
NodeContext * nodes(void)
Graph-level Output Metadata.
Derived * create(Args &&...args)
Virtual CIRCLEIFOUT in Circle.
loco::Node * input(void) const
int32_t index(void) const
luci::CircleNode * visit(const luci::CircleBCQFullyConnected *) final
loco::TensorShape visit(const luci::CircleNode *node) final
Default fallback.
loco::DataType visit(const luci::CircleNode *node) final
Default fallback.
T must_cast(FeatureEncoder *node)
A helper dynamic_cast that throws when failed.
std::vector< Node * > output_nodes(Graph *)
DataType
"scalar" value type
T must_cast(loco::Node *node)
loco::GraphInputIndex index(const TFPlaceholder *node)