32 tflchef::Operation *operation = ctx->
chefop;
33 const tflite::Operator *op = ctx->
tflop;
35 auto op_params = op->builtin_options_as_Pool2DOptions();
36 assert(op_params !=
nullptr);
38 operation->set_type(
"AveragePool2D");
40 auto op_options = operation->mutable_averagepool2d_options();
43 op_options->set_stride_h(op_params->stride_h());
44 op_options->set_stride_w(op_params->stride_w());
45 op_options->set_filter_height(op_params->filter_height());
46 op_options->set_filter_width(op_params->filter_width());
tflchef::Operation * chefop
const tflite::Operator * tflop