30 const auto &inputs = args.op.inputs;
31 const auto &outputs = args.op.outputs;
32 const auto *options = args.op.builtin_options.AsSplitVOptions();
34 if (inputs.size() != 3)
37 if (
static_cast<int32_t
>(outputs.size()) != options->num_splits)
61CircleNode *CircleSplitVGraphBuilder::build_node(
const BuildNodeArgs &bna)
const
65 node->
input(bna.input_nodes[0]);
66 node->size_splits(bna.input_nodes[1]);
67 node->split_dim(bna.input_nodes[2]);
69 const auto *options = bna.op.builtin_options.AsSplitVOptions();
70 node->num_split(options->num_splits);
72 assert(int32_t(bna.op.outputs.size()) == options->num_splits);
77CircleNode *CircleSplitVGraphBuilder::build_out(
const BuildOutArgs &boa)
const
79 auto *nodeout = boa.node->graph()->nodes()->create<CircleSplitVOut>();
81 nodeout->input(boa.node);
82 nodeout->index(boa.index);
NodeContext * nodes(void)
Derived * create(Args &&...args)
bool validate(const ValidateArgs &args) const final
loco::Node * input(void) const