Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace ibilinear yaml with table header #7612

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ MICROKERNEL_DEFS = [
"src/f16-dwconv/f16-dwconv-minmax-multipass.h",
"src/f16-dwconv/f16-dwconv-minmax-unipass.h",
"src/f16-f32-vcvt/f16-f32-vcvt.h",
"src/f16-ibilinear/f16-ibilinear.h",
"src/f16-maxpool/f16-maxpool-minmax.h",
"src/f16-pavgpool/f16-pavgpool-minmax.h",
"src/f16-qu8-vcvt/f16-qu8-vcvt.h",
Expand Down Expand Up @@ -108,6 +109,7 @@ MICROKERNEL_DEFS = [
"src/f32-dwconv/f32-dwconv-multipass.h",
"src/f32-dwconv/f32-dwconv-unipass.h",
"src/f32-f16-vcvt/f32-f16-vcvt.h",
"src/f32-ibilinear/f32-ibilinear.h",
"src/f32-maxpool/f32-maxpool-minmax.h",
"src/f32-pavgpool/f32-pavgpool-minmax.h",
"src/f32-qs8-vcvt/f32-qs8-vcvt.h",
Expand Down Expand Up @@ -190,8 +192,10 @@ MICROKERNEL_DEFS = [
"src/qu8-vmul/qu8-vmul-minmax-rndnu.h",
"src/qu8-vmulc/qu8-vmulc-minmax-fp32.h",
"src/qu8-vmulc/qu8-vmulc-minmax-rndnu.h",
"src/s8-ibilinear/s8-ibilinear.h",
"src/s8-maxpool/s8-maxpool-minmax.h",
"src/s8-vclamp/s8-vclamp.h",
"src/u8-ibilinear/u8-ibilinear.h",
"src/u8-maxpool/u8-maxpool-minmax.h",
"src/u8-vclamp/u8-vclamp.h",
"src/xx-fill/xx-fill.h",
Expand Down
8 changes: 4 additions & 4 deletions scripts/generate-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,10 @@ tools/generate-vunary-test.py --ukernel f16-vhswish --output test/f16-vhswish.cc
tools/generate-vunary-test.py --ukernel f32-vhswish --output test/f32-vhswish.cc &

### Tests for IBilinear micro-kernels
tools/generate-ibilinear-test.py --spec test/f16-ibilinear.yaml --output test/f16-ibilinear.cc &
tools/generate-ibilinear-test.py --spec test/f32-ibilinear.yaml --output test/f32-ibilinear.cc &
tools/generate-ibilinear-test.py --spec test/s8-ibilinear.yaml --output test/s8-ibilinear.cc &
tools/generate-ibilinear-test.py --spec test/u8-ibilinear.yaml --output test/u8-ibilinear.cc &
tools/generate-ibilinear-test.py --tester IBilinearMicrokernelTester --ukernel f16-ibilinear --output test/f16-ibilinear.cc &
tools/generate-ibilinear-test.py --tester IBilinearMicrokernelTester --ukernel f32-ibilinear --output test/f32-ibilinear.cc &
tools/generate-ibilinear-test.py --tester IBilinearMicrokernelTester --ukernel s8-ibilinear --output test/s8-ibilinear.cc &
tools/generate-ibilinear-test.py --tester IBilinearMicrokernelTester --ukernel u8-ibilinear --output test/u8-ibilinear.cc &

### Tests for IBilinear CHW layout micro-kernels
tools/generate-ibilinear-chw-test.py --spec test/f16-ibilinear-chw.yaml --output test/f16-ibilinear-chw.cc &
Expand Down
35 changes: 35 additions & 0 deletions src/f16-ibilinear/f16-ibilinear.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// Copyright 2023 Google LLC
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.

#ifndef XNN_UKERNEL_WITH_PARAMS
#define XNN_UKERNEL_WITH_PARAMS(arch_flags, ukernel, channel_tile, pixel_tile, datatype, weight_type, params_type, init_params) \
XNN_UKERNEL(arch_flags, ukernel, channel_tile, pixel_tile, datatype, weight_type, params_type, init_params)
#define XNN_DEFINED_UKERNEL_WITH_PARAMS
#endif

#ifndef XNN_UKERNEL
#define XNN_UKERNEL(arch_flags, ukernel, channel_tile, pixel_tile, datatype, weight_type, params_type, init_params) \
XNN_UKERNEL_WITH_PARAMS(arch_flags, ukernel, channel_tile, pixel_tile, datatype, weight_type, void, /*init_params=*/nullptr)
#define XNN_DEFINED_UKERNEL
#endif

#if XNN_ENABLE_ARM_FP16_VECTOR && (XNN_ARCH_ARM || XNN_ARCH_ARM64)
XNN_UKERNEL_WITH_PARAMS(xnn_arch_arm_fp16_arith, xnn_f16_ibilinear_ukernel__neonfp16arith_c8, 8, 1, xnn_float16, xnn_float16, struct xnn_f16_default_params, NULL)
XNN_UKERNEL_WITH_PARAMS(xnn_arch_arm_fp16_arith, xnn_f16_ibilinear_ukernel__neonfp16arith_c16, 16, 1, xnn_float16, xnn_float16, struct xnn_f16_default_params, NULL)
#endif // XNN_ENABLE_ARM_FP16_VECTOR && (XNN_ARCH_ARM || XNN_ARCH_ARM64)

#if XNN_ARCH_X86 || XNN_ARCH_X86_64
XNN_UKERNEL_WITH_PARAMS(xnn_arch_x86_fma3, xnn_f16_ibilinear_ukernel__fma3_c8, 8, 1, xnn_float16, xnn_float16, struct xnn_f16_default_params, NULL)
XNN_UKERNEL_WITH_PARAMS(xnn_arch_x86_fma3, xnn_f16_ibilinear_ukernel__fma3_c16, 16, 1, xnn_float16, xnn_float16, struct xnn_f16_default_params, NULL)
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64

#ifdef XNN_DEFINED_UKERNEL_WITH_PARAMS
#undef XNN_DEFINED_UKERNEL_WITH_PARAMS
#undef XNN_UKERNEL_WITH_PARAMS
#endif
#ifdef XNN_DEFINED_UKERNEL
#undef XNN_DEFINED_UKERNEL
#undef XNN_UKERNEL
#endif
49 changes: 49 additions & 0 deletions src/f32-ibilinear/f32-ibilinear.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
// Copyright 2023 Google LLC
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.

#ifndef XNN_UKERNEL_WITH_PARAMS
#define XNN_UKERNEL_WITH_PARAMS(arch_flags, ukernel, channel_tile, pixel_tile, datatype, weight_type, params_type, init_params) \
XNN_UKERNEL(arch_flags, ukernel, channel_tile, pixel_tile, datatype, weight_type, params_type, init_params)
#define XNN_DEFINED_UKERNEL_WITH_PARAMS
#endif

#ifndef XNN_UKERNEL
#define XNN_UKERNEL(arch_flags, ukernel, channel_tile, pixel_tile, datatype, weight_type, params_type, init_params) \
XNN_UKERNEL_WITH_PARAMS(arch_flags, ukernel, channel_tile, pixel_tile, datatype, weight_type, void, /*init_params=*/nullptr)
#define XNN_DEFINED_UKERNEL
#endif

XNN_UKERNEL_WITH_PARAMS(0, xnn_f32_ibilinear_ukernel__scalar_c1, 1, 1, float, float, void, nullptr)
XNN_UKERNEL_WITH_PARAMS(0, xnn_f32_ibilinear_ukernel__scalar_c2, 2, 1, float, float, void, nullptr)
XNN_UKERNEL_WITH_PARAMS(0, xnn_f32_ibilinear_ukernel__scalar_c4, 4, 1, float, float, void, nullptr)

#if (XNN_ARCH_ARM || XNN_ARCH_ARM64)
XNN_UKERNEL_WITH_PARAMS(xnn_arch_arm_neon, xnn_f32_ibilinear_ukernel__neon_c4, 4, 1, float, float, struct xnn_f32_default_params, NULL)
XNN_UKERNEL_WITH_PARAMS(xnn_arch_arm_neon, xnn_f32_ibilinear_ukernel__neon_c8, 8, 1, float, float, struct xnn_f32_default_params, NULL)
XNN_UKERNEL_WITH_PARAMS(xnn_arch_arm_neon_fma, xnn_f32_ibilinear_ukernel__neonfma_c4, 4, 1, float, float, struct xnn_f32_default_params, NULL)
XNN_UKERNEL_WITH_PARAMS(xnn_arch_arm_neon_fma, xnn_f32_ibilinear_ukernel__neonfma_c8, 8, 1, float, float, struct xnn_f32_default_params, NULL)
#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64

#if XNN_ARCH_X86 || XNN_ARCH_X86_64
XNN_UKERNEL_WITH_PARAMS(0, xnn_f32_ibilinear_ukernel__sse_c4, 4, 1, float, float, struct xnn_f32_default_params, NULL)
XNN_UKERNEL_WITH_PARAMS(0, xnn_f32_ibilinear_ukernel__sse_c8, 8, 1, float, float, struct xnn_f32_default_params, NULL)
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64

#if XNN_ARCH_WASMSIMD || XNN_ARCH_WASMRELAXEDSIMD
XNN_UKERNEL_WITH_PARAMS(0, xnn_f32_ibilinear_ukernel__wasmsimd_c4, 4, 1, float, float, struct xnn_f32_default_params, NULL)
XNN_UKERNEL_WITH_PARAMS(0, xnn_f32_ibilinear_ukernel__wasmsimd_c8, 8, 1, float, float, struct xnn_f32_default_params, NULL)
XNN_UKERNEL_WITH_PARAMS(0, xnn_f32_ibilinear_ukernel__wasmrelaxedsimd_c4, 4, 1, float, float, struct xnn_f32_default_params, NULL)
XNN_UKERNEL_WITH_PARAMS(0, xnn_f32_ibilinear_ukernel__wasmrelaxedsimd_c8, 8, 1, float, float, struct xnn_f32_default_params, NULL)
#endif // XNN_ARCH_WASMSIMD || XNN_ARCH_WASMRELAXEDSIMD

#ifdef XNN_DEFINED_UKERNEL_WITH_PARAMS
#undef XNN_DEFINED_UKERNEL_WITH_PARAMS
#undef XNN_UKERNEL_WITH_PARAMS
#endif

#ifdef XNN_DEFINED_UKERNEL
#undef XNN_DEFINED_UKERNEL
#undef XNN_UKERNEL
#endif
49 changes: 49 additions & 0 deletions src/s8-ibilinear/s8-ibilinear.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
// Copyright 2023 Google LLC
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.

#ifndef XNN_UKERNEL_WITH_PARAMS
#define XNN_UKERNEL_WITH_PARAMS(arch_flags, ukernel, channel_tile, pixel_tile, datatype, weight_type, params_type, init_params) \
XNN_UKERNEL(arch_flags, ukernel, channel_tile, pixel_tile, datatype, weight_type, params_type, init_params)
#define XNN_DEFINED_UKERNEL_WITH_PARAMS
#endif

#ifndef XNN_UKERNEL
#define XNN_UKERNEL(arch_flags, ukernel, channel_tile, pixel_tile, datatype, weight_type, params_type, init_params) \
XNN_UKERNEL_WITH_PARAMS(arch_flags, ukernel, channel_tile, pixel_tile, datatype, weight_type, void, /*init_params=*/nullptr)
#define XNN_DEFINED_UKERNEL
#endif

XNN_UKERNEL_WITH_PARAMS(0, xnn_s8_ibilinear_ukernel__scalar_c1, 1, 1, int8_t, int16_t, void, nullptr)
XNN_UKERNEL_WITH_PARAMS(0, xnn_s8_ibilinear_ukernel__scalar_c2, 2, 1, int8_t, int16_t, void, nullptr)
XNN_UKERNEL_WITH_PARAMS(0, xnn_s8_ibilinear_ukernel__scalar_c4, 4, 1, int8_t, int16_t, void, nullptr)

#if XNN_ARCH_ARM || XNN_ARCH_ARM64
XNN_UKERNEL_WITH_PARAMS(xnn_arch_arm_neon, xnn_s8_ibilinear_ukernel__neon_c8, 8, 1, int8_t, int16_t, struct xnn_s8_default_params, NULL)
XNN_UKERNEL_WITH_PARAMS(xnn_arch_arm_neon, xnn_s8_ibilinear_ukernel__neon_c16, 16, 1, int8_t, int16_t, struct xnn_s8_default_params, NULL)
#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64

#if XNN_ARCH_X86 || XNN_ARCH_X86_64
XNN_UKERNEL_WITH_PARAMS(0, xnn_s8_ibilinear_ukernel__sse2_c8, 8, 1, int8_t, int16_t, struct xnn_s8_default_params, NULL)
XNN_UKERNEL_WITH_PARAMS(0, xnn_s8_ibilinear_ukernel__sse2_c16, 16, 1, int8_t, int16_t, struct xnn_s8_default_params, NULL)
XNN_UKERNEL_WITH_PARAMS(xnn_arch_x86_sse4_1, xnn_s8_ibilinear_ukernel__sse41_c8, 8, 1, int8_t, int16_t, struct xnn_s8_default_params, NULL)
XNN_UKERNEL_WITH_PARAMS(xnn_arch_x86_sse4_1, xnn_s8_ibilinear_ukernel__sse41_c16, 16, 1, int8_t, int16_t, struct xnn_s8_default_params, NULL)
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64

#if XNN_ARCH_WASMSIMD || XNN_ARCH_WASMRELAXEDSIMD
XNN_UKERNEL_WITH_PARAMS(0, xnn_s8_ibilinear_ukernel__wasmsimd_dot16x2_c8, 8, 1, int8_t, int16_t, struct xnn_s8_default_params, NULL)
XNN_UKERNEL_WITH_PARAMS(0, xnn_s8_ibilinear_ukernel__wasmsimd_dot16x2_c16, 16, 1, int8_t, int16_t, struct xnn_s8_default_params, NULL)
XNN_UKERNEL_WITH_PARAMS(0, xnn_s8_ibilinear_ukernel__wasmsimd_mul32_c8, 8, 1, int8_t, int16_t, struct xnn_s8_default_params, NULL)
XNN_UKERNEL_WITH_PARAMS(0, xnn_s8_ibilinear_ukernel__wasmsimd_mul32_c16, 16, 1, int8_t, int16_t, struct xnn_s8_default_params, NULL)
#endif // XNN_ARCH_WASMSIMD || XNN_ARCH_WASMRELAXEDSIMD

#ifdef XNN_DEFINED_UKERNEL_WITH_PARAMS
#undef XNN_DEFINED_UKERNEL_WITH_PARAMS
#undef XNN_UKERNEL_WITH_PARAMS
#endif

#ifdef XNN_DEFINED_UKERNEL
#undef XNN_DEFINED_UKERNEL
#undef XNN_UKERNEL
#endif
49 changes: 49 additions & 0 deletions src/u8-ibilinear/u8-ibilinear.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
// Copyright 2023 Google LLC
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.

#ifndef XNN_UKERNEL_WITH_PARAMS
#define XNN_UKERNEL_WITH_PARAMS(arch_flags, ukernel, channel_tile, pixel_tile, datatype, weight_type, params_type, init_params) \
XNN_UKERNEL(arch_flags, ukernel, channel_tile, pixel_tile, datatype, weight_type, params_type, init_params)
#define XNN_DEFINED_UKERNEL_WITH_PARAMS
#endif

#ifndef XNN_UKERNEL
#define XNN_UKERNEL(arch_flags, ukernel, channel_tile, pixel_tile, datatype, weight_type, params_type, init_params) \
XNN_UKERNEL_WITH_PARAMS(arch_flags, ukernel, channel_tile, pixel_tile, datatype, weight_type, void, /*init_params=*/nullptr)
#define XNN_DEFINED_UKERNEL
#endif

XNN_UKERNEL_WITH_PARAMS(0, xnn_u8_ibilinear_ukernel__scalar_c1, 1, 1, uint8_t, int16_t, void, nullptr)
XNN_UKERNEL_WITH_PARAMS(0, xnn_u8_ibilinear_ukernel__scalar_c2, 2, 1, uint8_t, int16_t, void, nullptr)
XNN_UKERNEL_WITH_PARAMS(0, xnn_u8_ibilinear_ukernel__scalar_c4, 4, 1, uint8_t, int16_t, void, nullptr)

#if XNN_ARCH_ARM || XNN_ARCH_ARM64
XNN_UKERNEL_WITH_PARAMS(xnn_arch_arm_neon, xnn_u8_ibilinear_ukernel__neon_c8, 8, 1, uint8_t, int16_t, struct xnn_u8_default_params, NULL)
XNN_UKERNEL_WITH_PARAMS(xnn_arch_arm_neon, xnn_u8_ibilinear_ukernel__neon_c16, 16, 1, uint8_t, int16_t, struct xnn_u8_default_params, NULL)
#endif // XNN_ARCH_ARM || XNN_ARCH_ARM64

#if XNN_ARCH_X86 || XNN_ARCH_X86_64
XNN_UKERNEL_WITH_PARAMS(0, xnn_u8_ibilinear_ukernel__sse2_c8, 8, 1, uint8_t, int16_t, struct xnn_u8_default_params, NULL)
XNN_UKERNEL_WITH_PARAMS(0, xnn_u8_ibilinear_ukernel__sse2_c16, 16, 1, uint8_t, int16_t, struct xnn_u8_default_params, NULL)
XNN_UKERNEL_WITH_PARAMS(xnn_arch_x86_sse4_1, xnn_u8_ibilinear_ukernel__sse41_c8, 8, 1, uint8_t, int16_t, struct xnn_u8_default_params, NULL)
XNN_UKERNEL_WITH_PARAMS(xnn_arch_x86_sse4_1, xnn_u8_ibilinear_ukernel__sse41_c16, 16, 1, uint8_t, int16_t, struct xnn_u8_default_params, NULL)
#endif // XNN_ARCH_X86 || XNN_ARCH_X86_64

#if XNN_ARCH_WASMSIMD || XNN_ARCH_WASMRELAXEDSIMD
XNN_UKERNEL_WITH_PARAMS(0, xnn_u8_ibilinear_ukernel__wasmsimd_dot16x2_c8, 8, 1, uint8_t, int16_t, struct xnn_u8_default_params, NULL)
XNN_UKERNEL_WITH_PARAMS(0, xnn_u8_ibilinear_ukernel__wasmsimd_dot16x2_c16, 16, 1, uint8_t, int16_t, struct xnn_u8_default_params, NULL)
XNN_UKERNEL_WITH_PARAMS(0, xnn_u8_ibilinear_ukernel__wasmsimd_mul32_c8, 8, 1, uint8_t, int16_t, struct xnn_u8_default_params, NULL)
XNN_UKERNEL_WITH_PARAMS(0, xnn_u8_ibilinear_ukernel__wasmsimd_mul32_c16, 16, 1, uint8_t, int16_t, struct xnn_u8_default_params, NULL)
#endif // XNN_ARCH_WASMSIMD || XNN_ARCH_WASMRELAXEDSIMD

#ifdef XNN_DEFINED_UKERNEL_WITH_PARAMS
#undef XNN_DEFINED_UKERNEL_WITH_PARAMS
#undef XNN_UKERNEL_WITH_PARAMS
#endif

#ifdef XNN_DEFINED_UKERNEL
#undef XNN_DEFINED_UKERNEL
#undef XNN_UKERNEL
#endif
109 changes: 9 additions & 100 deletions src/xnnpack/ibilinear.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,111 +16,20 @@ extern "C" {
#endif


#define DECLARE_F16_IBILINEAR_UKERNEL_FUNCTION(fn_name) \
XNN_INTERNAL void fn_name( \
size_t output_pixels, \
size_t channels, \
const xnn_float16** input, \
size_t input_offset, \
const xnn_float16* weights, \
xnn_float16* output, \
size_t output_increment);

DECLARE_F16_IBILINEAR_UKERNEL_FUNCTION(xnn_f16_ibilinear_ukernel__fma3_c8)
DECLARE_F16_IBILINEAR_UKERNEL_FUNCTION(xnn_f16_ibilinear_ukernel__fma3_c16)

DECLARE_F16_IBILINEAR_UKERNEL_FUNCTION(xnn_f16_ibilinear_ukernel__neonfp16arith_c8)
DECLARE_F16_IBILINEAR_UKERNEL_FUNCTION(xnn_f16_ibilinear_ukernel__neonfp16arith_c16)


#define DECLARE_F32_IBILINEAR_UKERNEL_FUNCTION(fn_name) \
XNN_INTERNAL void fn_name( \
size_t output_pixels, \
size_t channels, \
const float** input, \
size_t input_offset, \
const float* weights, \
float* output, \
size_t output_increment);

DECLARE_F32_IBILINEAR_UKERNEL_FUNCTION(xnn_f32_ibilinear_ukernel__scalar_c1)
DECLARE_F32_IBILINEAR_UKERNEL_FUNCTION(xnn_f32_ibilinear_ukernel__scalar_c2)
DECLARE_F32_IBILINEAR_UKERNEL_FUNCTION(xnn_f32_ibilinear_ukernel__scalar_c4)

DECLARE_F32_IBILINEAR_UKERNEL_FUNCTION(xnn_f32_ibilinear_ukernel__neon_c4)
DECLARE_F32_IBILINEAR_UKERNEL_FUNCTION(xnn_f32_ibilinear_ukernel__neon_c8)

DECLARE_F32_IBILINEAR_UKERNEL_FUNCTION(xnn_f32_ibilinear_ukernel__neonfma_c4)
DECLARE_F32_IBILINEAR_UKERNEL_FUNCTION(xnn_f32_ibilinear_ukernel__neonfma_c8)

DECLARE_F32_IBILINEAR_UKERNEL_FUNCTION(xnn_f32_ibilinear_ukernel__sse_c4)
DECLARE_F32_IBILINEAR_UKERNEL_FUNCTION(xnn_f32_ibilinear_ukernel__sse_c8)

DECLARE_F32_IBILINEAR_UKERNEL_FUNCTION(xnn_f32_ibilinear_ukernel__wasmsimd_c4)
DECLARE_F32_IBILINEAR_UKERNEL_FUNCTION(xnn_f32_ibilinear_ukernel__wasmsimd_c8)

DECLARE_F32_IBILINEAR_UKERNEL_FUNCTION(xnn_f32_ibilinear_ukernel__wasmrelaxedsimd_c4)
DECLARE_F32_IBILINEAR_UKERNEL_FUNCTION(xnn_f32_ibilinear_ukernel__wasmrelaxedsimd_c8)


#define DECLARE_S8_IBILINEAR_UKERNEL_FUNCTION(fn_name) \
#define XNN_UKERNEL(arch_flags, fn_name, channel_tile, pixel_tile, datatype, weight_type, params_type, init_params) \
XNN_INTERNAL void fn_name( \
size_t output_pixels, \
size_t channels, \
const int8_t** input, \
const datatype** input, \
size_t input_offset, \
const int16_t* weights, \
int8_t* output, \
const weight_type* weights, \
datatype* output, \
size_t output_increment);

DECLARE_S8_IBILINEAR_UKERNEL_FUNCTION(xnn_s8_ibilinear_ukernel__scalar_c1)
DECLARE_S8_IBILINEAR_UKERNEL_FUNCTION(xnn_s8_ibilinear_ukernel__scalar_c2)
DECLARE_S8_IBILINEAR_UKERNEL_FUNCTION(xnn_s8_ibilinear_ukernel__scalar_c4)

DECLARE_S8_IBILINEAR_UKERNEL_FUNCTION(xnn_s8_ibilinear_ukernel__neon_c8)
DECLARE_S8_IBILINEAR_UKERNEL_FUNCTION(xnn_s8_ibilinear_ukernel__neon_c16)

DECLARE_S8_IBILINEAR_UKERNEL_FUNCTION(xnn_s8_ibilinear_ukernel__sse2_c8)
DECLARE_S8_IBILINEAR_UKERNEL_FUNCTION(xnn_s8_ibilinear_ukernel__sse2_c16)

DECLARE_S8_IBILINEAR_UKERNEL_FUNCTION(xnn_s8_ibilinear_ukernel__sse41_c8)
DECLARE_S8_IBILINEAR_UKERNEL_FUNCTION(xnn_s8_ibilinear_ukernel__sse41_c16)

DECLARE_S8_IBILINEAR_UKERNEL_FUNCTION(xnn_s8_ibilinear_ukernel__wasmsimd_dot16x2_c8)
DECLARE_S8_IBILINEAR_UKERNEL_FUNCTION(xnn_s8_ibilinear_ukernel__wasmsimd_dot16x2_c16)

DECLARE_S8_IBILINEAR_UKERNEL_FUNCTION(xnn_s8_ibilinear_ukernel__wasmsimd_mul32_c8)
DECLARE_S8_IBILINEAR_UKERNEL_FUNCTION(xnn_s8_ibilinear_ukernel__wasmsimd_mul32_c16)

#define DECLARE_U8_IBILINEAR_UKERNEL_FUNCTION(fn_name) \
XNN_INTERNAL void fn_name( \
size_t output_pixels, \
size_t channels, \
const uint8_t** input, \
size_t input_offset, \
const int16_t* weights, \
uint8_t* output, \
size_t output_increment);


DECLARE_U8_IBILINEAR_UKERNEL_FUNCTION(xnn_u8_ibilinear_ukernel__scalar_c1)
DECLARE_U8_IBILINEAR_UKERNEL_FUNCTION(xnn_u8_ibilinear_ukernel__scalar_c2)
DECLARE_U8_IBILINEAR_UKERNEL_FUNCTION(xnn_u8_ibilinear_ukernel__scalar_c4)

DECLARE_U8_IBILINEAR_UKERNEL_FUNCTION(xnn_u8_ibilinear_ukernel__neon_c8)
DECLARE_U8_IBILINEAR_UKERNEL_FUNCTION(xnn_u8_ibilinear_ukernel__neon_c16)

DECLARE_U8_IBILINEAR_UKERNEL_FUNCTION(xnn_u8_ibilinear_ukernel__sse2_c8)
DECLARE_U8_IBILINEAR_UKERNEL_FUNCTION(xnn_u8_ibilinear_ukernel__sse2_c16)

DECLARE_U8_IBILINEAR_UKERNEL_FUNCTION(xnn_u8_ibilinear_ukernel__sse41_c8)
DECLARE_U8_IBILINEAR_UKERNEL_FUNCTION(xnn_u8_ibilinear_ukernel__sse41_c16)

DECLARE_U8_IBILINEAR_UKERNEL_FUNCTION(xnn_u8_ibilinear_ukernel__wasmsimd_dot16x2_c8)
DECLARE_U8_IBILINEAR_UKERNEL_FUNCTION(xnn_u8_ibilinear_ukernel__wasmsimd_dot16x2_c16)

DECLARE_U8_IBILINEAR_UKERNEL_FUNCTION(xnn_u8_ibilinear_ukernel__wasmsimd_mul32_c8)
DECLARE_U8_IBILINEAR_UKERNEL_FUNCTION(xnn_u8_ibilinear_ukernel__wasmsimd_mul32_c16)
#include "f16-ibilinear/f16-ibilinear.h"
#include "f32-ibilinear/f32-ibilinear.h"
#include "s8-ibilinear/s8-ibilinear.h"
#include "u8-ibilinear/u8-ibilinear.h"
#undef XNN_UKERNEL

#define DECLARE_F32_IBILINEAR_CHW_UKERNEL_FUNCTION(fn_name) \
XNN_INTERNAL void fn_name( \
Expand Down
Loading