#include <assert.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.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/indirection.h"
#include "xnnpack/log.h"
#include "xnnpack/math.h"
#include "xnnpack/microfnptr.h"
#include "xnnpack/operator-type.h"
#include "xnnpack/operator.h"
#include "xnnpack/params.h"
#include "pthreadpool.h"
static enum xnn_status create_resize_bilinear2d_nhwc(
size_t output_height,
size_t output_width,
uint32_t flags,
enum xnn_operator_type operator_type,
const struct xnn_ibilinear_config* ibilinear_config,
xnn_operator_t* resize_op_out)
{ … }
enum xnn_status xnn_create_resize_bilinear2d_nhwc_f16(
size_t output_height,
size_t output_width,
uint32_t flags,
xnn_operator_t* resize_op_out)
{ … }
enum xnn_status xnn_create_resize_bilinear2d_nhwc_f32(
size_t output_height,
size_t output_width,
uint32_t flags,
xnn_operator_t* resize_op_out)
{ … }
enum xnn_status xnn_create_resize_bilinear2d_nhwc_s8(
size_t output_height,
size_t output_width,
uint32_t flags,
xnn_operator_t* resize_op_out)
{ … }
enum xnn_status xnn_create_resize_bilinear2d_nhwc_u8(
size_t output_height,
size_t output_width,
uint32_t flags,
xnn_operator_t* resize_op_out)
{ … }
static enum xnn_status reshape_resize_bilinear2d_nhwc(
xnn_operator_t resize_op,
enum xnn_operator_type expected_operator_type,
size_t batch_size,
size_t input_height,
size_t input_width,
size_t channels,
size_t input_pixel_stride,
size_t output_pixel_stride,
uint32_t log2_data_element_size,
uint32_t log2_weight_element_size,
xnn_indirection_init_resize_bilinear2d_hwc_fn indirection_init,
size_t* workspace_size,
size_t* workspace_alignment,
pthreadpool_t threadpool)
{ … }
enum xnn_status xnn_reshape_resize_bilinear2d_nhwc_f16(
xnn_operator_t resize_op,
size_t batch_size,
size_t input_height,
size_t input_width,
size_t channels,
size_t input_pixel_stride,
size_t output_pixel_stride,
size_t* workspace_size,
size_t* workspace_alignment,
pthreadpool_t threadpool)
{ … }
enum xnn_status xnn_reshape_resize_bilinear2d_nhwc_f32(
xnn_operator_t resize_op,
size_t batch_size,
size_t input_height,
size_t input_width,
size_t channels,
size_t input_pixel_stride,
size_t output_pixel_stride,
size_t* workspace_size,
size_t* workspace_alignment,
pthreadpool_t threadpool)
{ … }
enum xnn_status xnn_reshape_resize_bilinear2d_nhwc_s8(
xnn_operator_t resize_op,
size_t batch_size,
size_t input_height,
size_t input_width,
size_t channels,
size_t input_pixel_stride,
size_t output_pixel_stride,
size_t* workspace_size,
size_t* workspace_alignment,
pthreadpool_t threadpool)
{ … }
enum xnn_status xnn_reshape_resize_bilinear2d_nhwc_u8(
xnn_operator_t resize_op,
size_t batch_size,
size_t input_height,
size_t input_width,
size_t channels,
size_t input_pixel_stride,
size_t output_pixel_stride,
size_t* workspace_size,
size_t* workspace_alignment,
pthreadpool_t threadpool)
{ … }
static enum xnn_status setup_resize_bilinear2d_nhwc(
xnn_operator_t resize_op,
enum xnn_operator_type expected_operator_type,
void* workspace,
const void* input,
void* output,
uint32_t log2_weight_element_size)
{ … }
enum xnn_status xnn_setup_resize_bilinear2d_nhwc_f16(
xnn_operator_t resize_op,
void* workspace,
const void* input,
void* output)
{ … }
enum xnn_status xnn_setup_resize_bilinear2d_nhwc_f32(
xnn_operator_t resize_op,
void* workspace,
const float* input,
float* output)
{ … }
enum xnn_status xnn_setup_resize_bilinear2d_nhwc_s8(
xnn_operator_t resize_op,
void* workspace,
const int8_t* input,
int8_t* output)
{ … }
enum xnn_status xnn_setup_resize_bilinear2d_nhwc_u8(
xnn_operator_t resize_op,
void* workspace,
const uint8_t* input,
uint8_t* output)
{ … }