34CircleNode *CircleConv2DGraphBuilder::build_node(
const circle::OperatorT &op,
35 const std::vector<CircleNode *> &inputs,
39 node->
input(inputs.at(0));
40 node->filter(inputs.at(1));
42 assert(inputs.size() == 3);
43 node->bias(inputs.at(2));
45 const auto *options = op.builtin_options.AsConv2DOptions();
47 node->stride()->w(options->stride_w);
48 node->stride()->h(options->stride_h);
49 node->fusedActivationFunction(
luci_actfunc(options->fused_activation_function));
50 node->dilation()->w(options->dilation_w_factor);
51 node->dilation()->h(options->dilation_h_factor);
bool validate(const ValidateArgs &args) const final
loco::Node * input(void) const
bool validate(const ValidateArgs &args, size_t input_cnt) const
Padding luci_padding(const circle::Padding padding)
FusedActFunc luci_actfunc(const circle::ActivationFunctionType type)