XNNPACK Team | b455b12 | 2019-09-27 18:10:33 -0700 | [diff] [blame] | 1 | // Copyright (c) Facebook, Inc. and its affiliates. |
| 2 | // All rights reserved. |
| 3 | // |
| 4 | // Copyright 2019 Google LLC |
| 5 | // |
| 6 | // This source code is licensed under the BSD-style license found in the |
| 7 | // LICENSE file in the root directory of this source tree. |
| 8 | |
| 9 | #pragma once |
| 10 | |
| 11 | #include <stddef.h> |
| 12 | #include <stdint.h> |
| 13 | |
| 14 | #include <xnnpack/params.h> |
| 15 | #include <xnnpack/common.h> |
| 16 | |
| 17 | #ifdef __cplusplus |
| 18 | extern "C" { |
| 19 | #endif |
| 20 | |
| 21 | |
| 22 | #define DECLARE_F32_CONV_HWC_UKERNEL_FUNCTION(fn_name) \ |
| 23 | XNN_INTERNAL void fn_name( \ |
| 24 | size_t input_height, \ |
| 25 | size_t input_width, \ |
| 26 | size_t output_y_start, \ |
| 27 | size_t output_y_end, \ |
| 28 | const float* input, \ |
| 29 | const float* zero, \ |
| 30 | const float* weights, \ |
| 31 | float* output, \ |
| 32 | size_t input_padding_top, \ |
| 33 | size_t output_channels, \ |
| 34 | size_t output_height_stride, \ |
| 35 | size_t output_width_stride, \ |
Marat Dukhan | eb09a6b | 2020-04-08 17:34:32 -0700 | [diff] [blame] | 36 | const union xnn_f32_minmax_params* params); |
XNNPACK Team | b455b12 | 2019-09-27 18:10:33 -0700 | [diff] [blame] | 37 | |
Marat Dukhan | 7e4ca40 | 2020-05-15 18:50:12 -0700 | [diff] [blame^] | 38 | DECLARE_F32_CONV_HWC_UKERNEL_FUNCTION(xnn_f32_conv_hwc_ukernel_3x3s2p0p1c3x8__neonfma_2x2) |
XNNPACK Team | b455b12 | 2019-09-27 18:10:33 -0700 | [diff] [blame] | 39 | DECLARE_F32_CONV_HWC_UKERNEL_FUNCTION(xnn_f32_conv_hwc_ukernel_3x3s2p1c3x8__neonfma_2x2) |
Marat Dukhan | 7e4ca40 | 2020-05-15 18:50:12 -0700 | [diff] [blame^] | 40 | DECLARE_F32_CONV_HWC_UKERNEL_FUNCTION(xnn_f32_conv_hwc_ukernel_3x3s2p0p1c3x4__neonfma_2x2) |
XNNPACK Team | b455b12 | 2019-09-27 18:10:33 -0700 | [diff] [blame] | 41 | DECLARE_F32_CONV_HWC_UKERNEL_FUNCTION(xnn_f32_conv_hwc_ukernel_3x3s2p1c3x4__neonfma_2x2) |
Marat Dukhan | 441e221 | 2019-12-04 18:30:49 -0800 | [diff] [blame] | 42 | DECLARE_F32_CONV_HWC_UKERNEL_FUNCTION(xnn_f32_conv_hwc_ukernel_3x3s2p0p1c3x4__scalar_1x1) |
Marat Dukhan | 6b7dfae | 2019-12-04 16:00:52 -0800 | [diff] [blame] | 43 | DECLARE_F32_CONV_HWC_UKERNEL_FUNCTION(xnn_f32_conv_hwc_ukernel_3x3s2p1c3x4__scalar_1x1) |
XNNPACK Team | b455b12 | 2019-09-27 18:10:33 -0700 | [diff] [blame] | 44 | |
| 45 | |
| 46 | #define DECLARE_F32_CONV_HWC2SPCHW_UKERNEL_FUNCTION(fn_name) \ |
| 47 | XNN_INTERNAL void fn_name( \ |
| 48 | size_t input_height, \ |
| 49 | size_t input_width, \ |
| 50 | size_t output_y_start, \ |
| 51 | size_t output_y_end, \ |
| 52 | const float* input, \ |
| 53 | const float* zero, \ |
| 54 | const float* weights, \ |
| 55 | float* output, \ |
| 56 | size_t input_padding_top, \ |
| 57 | size_t output_channels, \ |
| 58 | size_t output_height_stride, \ |
| 59 | size_t output_channel_stride, \ |
Marat Dukhan | eb09a6b | 2020-04-08 17:34:32 -0700 | [diff] [blame] | 60 | const union xnn_f32_minmax_params* params); |
XNNPACK Team | b455b12 | 2019-09-27 18:10:33 -0700 | [diff] [blame] | 61 | |
| 62 | DECLARE_F32_CONV_HWC2SPCHW_UKERNEL_FUNCTION(xnn_f32_conv_hwc2spchw_ukernel_3x3s2p1c3x4__neonfma_2x2) |
Erich Elsen | 563df5f | 2019-10-23 08:02:21 -0700 | [diff] [blame] | 63 | DECLARE_F32_CONV_HWC2SPCHW_UKERNEL_FUNCTION(xnn_f32_conv_hwc2spchw_ukernel_3x3s2p1c3x4__scalar_1x1) |
XNNPACK Team | b455b12 | 2019-09-27 18:10:33 -0700 | [diff] [blame] | 64 | |
| 65 | |
| 66 | #ifdef __cplusplus |
Marat Dukhan | 80fc932 | 2019-09-29 21:06:36 -0700 | [diff] [blame] | 67 | } // extern "C" |
XNNPACK Team | b455b12 | 2019-09-27 18:10:33 -0700 | [diff] [blame] | 68 | #endif |