#include <assert.h>
#include <math.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <fp16/fp16.h>
#include "xnnpack.h"
#include "xnnpack/allocator.h"
#include "xnnpack/common.h"
#include "xnnpack/compute.h"
#include "xnnpack/config-types.h"
#include "xnnpack/config.h"
#include "xnnpack/log.h"
#include "xnnpack/math.h"
#include "xnnpack/microparams-init.h"
#include "xnnpack/microparams.h"
#include "xnnpack/operator-type.h"
#include "xnnpack/operator.h"
#include "xnnpack/params.h"
#include "pthreadpool.h"
static enum xnn_status create_global_average_pooling_ncw(
uint32_t flags,
uint32_t log2_element_size,
size_t params_offset,
const void* params,
size_t params_size,
enum xnn_operator_type operator_type,
const struct xnn_gavgpool_cw_config* gavgpool_cw_config,
xnn_operator_t* global_average_pooling_op_out)
{ … }
enum xnn_status xnn_create_global_average_pooling_ncw_f16(
float output_min,
float output_max,
uint32_t flags,
xnn_operator_t* global_average_pooling_op_out)
{ … }
enum xnn_status xnn_create_global_average_pooling_ncw_f32(
float output_min,
float output_max,
uint32_t flags,
xnn_operator_t* global_average_pooling_op_out)
{ … }
enum xnn_status xnn_reshape_global_average_pooling_ncw_f32(
xnn_operator_t global_average_pooling_op,
size_t batch_size,
size_t width,
size_t channels,
pthreadpool_t threadpool)
{ … }
enum xnn_status xnn_reshape_global_average_pooling_ncw_f16(
xnn_operator_t global_average_pooling_op,
size_t batch_size,
size_t width,
size_t channels,
pthreadpool_t threadpool)
{ … }
static enum xnn_status setup_global_average_pooling_ncw(
xnn_operator_t global_average_pooling_op,
enum xnn_operator_type expected_operator_type,
const float* input,
float* output)
{ … }
enum xnn_status xnn_setup_global_average_pooling_ncw_f32(
xnn_operator_t global_average_pooling_op,
const float* input,
float* output)
{ … }
enum xnn_status xnn_setup_global_average_pooling_ncw_f16(
xnn_operator_t global_average_pooling_op,
const void* input,
void* output)
{ … }