28 const auto *node = loco::must_cast<const luci::CircleAveragePool2D *>(circle_node);
29 assert(node->arity() == 1);
35 params.
padding = node->padding();
36 params.filter_height = node->filter()->h();
37 params.filter_width = node->filter()->w();
38 params.stride_height = node->stride()->h();
39 params.stride_width = node->stride()->w();
40 params.activation = node->fusedActivationFunction();
45 scratchpad->set_observable(
false);
46 scratchpad->set_data_buffer(
nullptr);
55 if (execution_plan.offsets().size() > 1)
57 scratchpad->set_offset(execution_plan.offsets().at(1));
61 return std::make_unique<kernels::AveragePool2D>(input, output, tmp, params);