30 const auto &inputs = args.op.inputs;
31 const auto &outputs = args.op.outputs;
33 if (inputs.size() != 2)
35 if (outputs.size() != 2)
38 const auto tensors = args.reader.tensors();
39 const auto tensor = tensors.at(inputs.at(1));
40 assert(tensor !=
nullptr);
41 if (tensor->type() != circle::TensorType_INT32)
63CircleNode *CircleTopKV2GraphBuilder::build_node(
const BuildNodeArgs &bna)
const
67 node->
input(bna.input_nodes[0]);
68 node->k(bna.input_nodes[1]);
73CircleNode *CircleTopKV2GraphBuilder::build_out(
const BuildOutArgs &boa)
const
77 nodeout->input(boa.node);
78 nodeout->index(boa.index);
NodeContext * nodes(void)
Derived * create(Args &&...args)
bool validate(const ValidateArgs &args) const final
loco::Node * input(void) const