#include "xnnpack/indirection.h"
#include <assert.h>
#include <fxdiv.h>
#include <math.h>
#include <stddef.h>
#include <stdint.h>
#include <fp16/fp16.h>
#include "xnnpack.h"
#include "xnnpack/common.h"
#include "xnnpack/math.h"
#include "xnnpack/operator.h"
void xnn_indirection_init_conv2d(
size_t output_tile_size,
size_t output_start,
size_t output_end,
const void** indirection_buffer,
const void* input,
const void* zero_buffer,
size_t input_pixel_stride,
size_t input_height,
size_t input_width,
size_t output_height,
size_t output_width,
size_t kernel_height,
size_t kernel_width,
size_t stride_height,
size_t stride_width,
size_t dilation_height,
size_t dilation_width,
size_t input_padding_top,
size_t input_padding_left)
{ … }
void xnn_indirection_init_deconv2d(
xnn_operator_t op,
size_t output_tile_size,
uint32_t log2_element_size)
{ … }
void xnn_indirection_init_subconv2d(
xnn_operator_t op,
size_t output_tile_size,
uint32_t log2_element_size)
{ … }
void xnn_indirection_init_dwconv2d_compressed(
size_t output_y_start,
size_t output_y_end,
const void** indirection_buffer,
const void* input,
size_t input_pixel_stride,
const void* zero_buffer,
size_t input_height,
size_t input_width,
size_t output_height,
size_t output_width,
size_t kernel_height,
size_t kernel_width,
size_t stride_height,
size_t stride_width,
size_t dilation_height,
size_t dilation_width,
size_t input_padding_top,
size_t input_padding_left,
size_t step_height,
size_t step_width,
size_t indirect_top_height,
size_t indirect_bot_height,
size_t primary_tile)
{ … }
void xnn_indirection_init_dwconv2d(
size_t output_y_start,
size_t output_y_end,
const void** indirection_buffer,
const void* input,
size_t input_pixel_stride,
const void* zero_buffer,
size_t input_height,
size_t input_width,
size_t output_height,
size_t output_width,
size_t kernel_height,
size_t kernel_width,
size_t stride_height,
size_t stride_width,
size_t dilation_height,
size_t dilation_width,
size_t input_padding_top,
size_t input_padding_left,
size_t step_height,
size_t step_width,
size_t primary_tile)
{ … }
void xnn_indirection_init_maxpool2d(
xnn_operator_t op,
size_t step_height,
size_t step_width,
uint32_t log2_element_size)
{ … }
void xnn_indirection_init_resize_bilinear2d_hwc_f16(
size_t output_y_start,
size_t output_y_end,
size_t input_pixel_stride,
size_t input_height,
size_t input_width,
size_t output_height,
size_t output_width,
const void* input,
const void** indirection_buffer,
void* packed_weights,
bool align_corners,
bool tensorflow_legacy)
{ … }
void xnn_indirection_init_resize_bilinear2d_hwc_f32(
size_t output_y_start,
size_t output_y_end,
size_t input_pixel_stride,
size_t input_height,
size_t input_width,
size_t output_height,
size_t output_width,
const void* input,
const void** indirection_buffer,
float* packed_weights,
bool align_corners,
bool tensorflow_legacy)
{ … }
void xnn_indirection_init_resize_bilinear2d_hwc_q11(
size_t output_y_start,
size_t output_y_end,
size_t input_pixel_stride,
size_t input_height,
size_t input_width,
size_t output_height,
size_t output_width,
const void* input,
const void** indirection_buffer,
int16_t* packed_weights,
bool align_corners,
bool tensorflow_legacy)
{ … }
void xnn_indirection_init_resize_bilinear2d_chw_f16(
size_t input_pixel_stride,
size_t input_height,
size_t input_width,
size_t output_height,
size_t output_width,
const void* input,
const void** indirection_buffer,
void* packed_weights,
bool align_corners,
bool tensorflow_legacy)
{ … }
void xnn_indirection_init_resize_bilinear2d_chw_f32(
size_t input_pixel_stride,
size_t input_height,
size_t input_width,
size_t output_height,
size_t output_width,
const void* input,
const void** indirection_buffer,
float* packed_weights,
bool align_corners,
bool tensorflow_legacy)
{ … }
void xnn_indirection_init_unpool2d(
xnn_operator_t op,
size_t batch_start,
uint32_t log2_element_size)
{ … }
void xnn_indirection_init_pavgpool2d_f16(
size_t input_height,
size_t input_width,
size_t output_height,
size_t output_width,
size_t pooling_height,
size_t pooling_width,
size_t stride_height,
size_t stride_width,
size_t padding_top,
size_t padding_left,
uint16_t* pixelwise_buffer)
{ … }
void xnn_indirection_init_pavgpool2d_f32(
size_t input_height,
size_t input_width,
size_t output_height,
size_t output_width,
size_t pooling_height,
size_t pooling_width,
size_t stride_height,
size_t stride_width,
size_t padding_top,
size_t padding_left,
float* pixelwise_buffer)
{ … }