29 const auto &inputs = args.op.inputs;
30 const auto &outputs = args.op.outputs;
31 const auto *options = args.op.builtin_options.AsPackOptions();
33 if (options->values_count < 1)
36 if (inputs.size() !=
static_cast<uint32_t
>(options->values_count))
39 if (outputs.size() != 1)
45CircleNode *CirclePackGraphBuilder::build_node(
const circle::OperatorT &op,
46 const std::vector<CircleNode *> &inputs,
49 auto *node = graph->nodes()->create<
CirclePack>(inputs.size());
50 for (uint32_t i = 0; i < inputs.size(); ++i)
52 node->
values(i, inputs[i]);
55 const auto *options = op.builtin_options.AsPackOptions();
56 node->axis(options->axis);
bool validate(const ValidateArgs &args) const final
Node * values(uint32_t index) const