30 const auto &inputs = args.op.inputs;
31 const auto &outputs = args.op.outputs;
32 const auto *options = args.op.builtin_options.AsSplitOptions();
34 if (inputs.size() != 2)
37 if (
static_cast<int32_t
>(outputs.size()) != options->num_splits)
61CircleNode *CircleSplitGraphBuilder::build_node(
const BuildNodeArgs &bna)
const
66 node->input(bna.input_nodes[1]);
68 const auto *options = bna.op.builtin_options.AsSplitOptions();
69 node->num_split(options->num_splits);
74CircleNode *CircleSplitGraphBuilder::build_out(
const BuildOutArgs &boa)
const
76 auto *nodeout = boa.node->graph()->nodes()->create<CircleSplitOut>();
78 nodeout->input(boa.node);
79 nodeout->index(boa.index);
NodeContext * nodes(void)
Derived * create(Args &&...args)
bool validate(const ValidateArgs &args) const final
loco::Node * split_dim(void) const