diff options
Diffstat (limited to 'src/core/NEON/kernels/convolution/depthwise/depthwise_4x4_3x3_2x2_fp32_fp32.cpp')
-rw-r--r-- | src/core/NEON/kernels/convolution/depthwise/depthwise_4x4_3x3_2x2_fp32_fp32.cpp | 141 |
1 files changed, 2 insertions, 139 deletions
diff --git a/src/core/NEON/kernels/convolution/depthwise/depthwise_4x4_3x3_2x2_fp32_fp32.cpp b/src/core/NEON/kernels/convolution/depthwise/depthwise_4x4_3x3_2x2_fp32_fp32.cpp index 05315eeab3..a04609d041 100644 --- a/src/core/NEON/kernels/convolution/depthwise/depthwise_4x4_3x3_2x2_fp32_fp32.cpp +++ b/src/core/NEON/kernels/convolution/depthwise/depthwise_4x4_3x3_2x2_fp32_fp32.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018 ARM Limited. + * Copyright (c) 2018-2019 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -25,142 +25,5 @@ namespace depthwise { -using Conv = DepthwiseConvolution<4, 4, 3, 3, 2, 2, float, float>; -using ConvImpl = DepthwiseConvolutionImpl<4, 4, 3, 3, 2, 2, float, float>; - -template <> -const Conv::TileFn Conv::tilefn_unpadded = ConvImpl::template process_tile<true, 0, 0, 0, 0, 0, 0>; - -template <> -const Conv::TileFn Conv::tilefn_top[n_in_pad_top_fns] = { - ConvImpl::template process_tile<true, 0, 0, 0, 0, 0, 0>, - ConvImpl::template process_tile<true, 1, 0, 0, 0, 0, 0>, -}; - -template <> -const Conv::TileFn Conv::tilefn_left[n_in_pad_left_fns] = { - ConvImpl::template process_tile<true, 0, 0, 0, 0, 0, 0>, - ConvImpl::template process_tile<true, 0, 1, 0, 0, 0, 0>, -}; - -template <> -const Conv::TileFn Conv::tilefn_bottom[n_in_pad_bottom_fns][n_out_pad_bottom_fns] = { - { - ConvImpl::template process_tile<true, 0, 0, 0, 0, 0, 0>, - ConvImpl::template process_tile<true, 0, 0, 0, 0, 1, 0>, - ConvImpl::template process_tile<true, 0, 0, 0, 0, 2, 0>, - ConvImpl::template process_tile<true, 0, 0, 0, 0, 3, 0>, - }, - { - ConvImpl::template process_tile<true, 0, 0, 1, 0, 0, 0>, - ConvImpl::template process_tile<true, 0, 0, 1, 0, 1, 0>, - ConvImpl::template process_tile<true, 0, 0, 1, 0, 2, 0>, - ConvImpl::template process_tile<true, 0, 0, 1, 0, 3, 0>, - }, - { - ConvImpl::template process_tile<true, 0, 0, 2, 0, 0, 0>, - ConvImpl::template process_tile<true, 0, 0, 2, 0, 1, 0>, - ConvImpl::template process_tile<true, 0, 0, 2, 0, 2, 0>, - ConvImpl::template process_tile<true, 0, 0, 2, 0, 3, 0>, - }, - { - ConvImpl::template process_tile<true, 0, 0, 3, 0, 0, 0>, - ConvImpl::template process_tile<true, 0, 0, 3, 0, 1, 0>, - ConvImpl::template process_tile<true, 0, 0, 3, 0, 2, 0>, - ConvImpl::template process_tile<true, 0, 0, 3, 0, 3, 0>, - }, - { - ConvImpl::template process_tile<true, 0, 0, 4, 0, 0, 0>, - ConvImpl::template process_tile<true, 0, 0, 4, 0, 1, 0>, - ConvImpl::template process_tile<true, 0, 0, 4, 0, 2, 0>, - ConvImpl::template process_tile<true, 0, 0, 4, 0, 3, 0>, - }, - { - ConvImpl::template process_tile<true, 0, 0, 5, 0, 0, 0>, - ConvImpl::template process_tile<true, 0, 0, 5, 0, 1, 0>, - ConvImpl::template process_tile<true, 0, 0, 5, 0, 2, 0>, - ConvImpl::template process_tile<true, 0, 0, 5, 0, 3, 0>, - }, - { - ConvImpl::template process_tile<true, 0, 0, 6, 0, 0, 0>, - ConvImpl::template process_tile<true, 0, 0, 6, 0, 1, 0>, - ConvImpl::template process_tile<true, 0, 0, 6, 0, 2, 0>, - ConvImpl::template process_tile<true, 0, 0, 6, 0, 3, 0>, - }, - { - ConvImpl::template process_tile<true, 0, 0, 7, 0, 0, 0>, - ConvImpl::template process_tile<true, 0, 0, 7, 0, 1, 0>, - ConvImpl::template process_tile<true, 0, 0, 7, 0, 2, 0>, - ConvImpl::template process_tile<true, 0, 0, 7, 0, 3, 0>, - }, - { - ConvImpl::template process_tile<true, 0, 0, 8, 0, 0, 0>, - ConvImpl::template process_tile<true, 0, 0, 8, 0, 1, 0>, - ConvImpl::template process_tile<true, 0, 0, 8, 0, 2, 0>, - ConvImpl::template process_tile<true, 0, 0, 8, 0, 3, 0>, - }, -}; - -template <> -const Conv::TileFn Conv::tilefn_right[n_in_pad_right_fns][n_out_pad_right_fns] = { - { - ConvImpl::template process_tile<true, 0, 0, 0, 0, 0, 0>, - ConvImpl::template process_tile<true, 0, 0, 0, 0, 0, 1>, - ConvImpl::template process_tile<true, 0, 0, 0, 0, 0, 2>, - ConvImpl::template process_tile<true, 0, 0, 0, 0, 0, 3>, - }, - { - ConvImpl::template process_tile<true, 0, 0, 0, 1, 0, 0>, - ConvImpl::template process_tile<true, 0, 0, 0, 1, 0, 1>, - ConvImpl::template process_tile<true, 0, 0, 0, 1, 0, 2>, - ConvImpl::template process_tile<true, 0, 0, 0, 1, 0, 3>, - }, - { - ConvImpl::template process_tile<true, 0, 0, 0, 2, 0, 0>, - ConvImpl::template process_tile<true, 0, 0, 0, 2, 0, 1>, - ConvImpl::template process_tile<true, 0, 0, 0, 2, 0, 2>, - ConvImpl::template process_tile<true, 0, 0, 0, 2, 0, 3>, - }, - { - ConvImpl::template process_tile<true, 0, 0, 0, 3, 0, 0>, - ConvImpl::template process_tile<true, 0, 0, 0, 3, 0, 1>, - ConvImpl::template process_tile<true, 0, 0, 0, 3, 0, 2>, - ConvImpl::template process_tile<true, 0, 0, 0, 3, 0, 3>, - }, - { - ConvImpl::template process_tile<true, 0, 0, 0, 4, 0, 0>, - ConvImpl::template process_tile<true, 0, 0, 0, 4, 0, 1>, - ConvImpl::template process_tile<true, 0, 0, 0, 4, 0, 2>, - ConvImpl::template process_tile<true, 0, 0, 0, 4, 0, 3>, - }, - { - ConvImpl::template process_tile<true, 0, 0, 0, 5, 0, 0>, - ConvImpl::template process_tile<true, 0, 0, 0, 5, 0, 1>, - ConvImpl::template process_tile<true, 0, 0, 0, 5, 0, 2>, - ConvImpl::template process_tile<true, 0, 0, 0, 5, 0, 3>, - }, - { - ConvImpl::template process_tile<true, 0, 0, 0, 6, 0, 0>, - ConvImpl::template process_tile<true, 0, 0, 0, 6, 0, 1>, - ConvImpl::template process_tile<true, 0, 0, 0, 6, 0, 2>, - ConvImpl::template process_tile<true, 0, 0, 0, 6, 0, 3>, - }, - { - ConvImpl::template process_tile<true, 0, 0, 0, 7, 0, 0>, - ConvImpl::template process_tile<true, 0, 0, 0, 7, 0, 1>, - ConvImpl::template process_tile<true, 0, 0, 0, 7, 0, 2>, - ConvImpl::template process_tile<true, 0, 0, 0, 7, 0, 3>, - }, - { - ConvImpl::template process_tile<true, 0, 0, 0, 8, 0, 0>, - ConvImpl::template process_tile<true, 0, 0, 0, 8, 0, 1>, - ConvImpl::template process_tile<true, 0, 0, 0, 8, 0, 2>, - ConvImpl::template process_tile<true, 0, 0, 0, 8, 0, 3>, - }, -}; - -template <> -const Conv::TileFn Conv::tilefn_generic = ConvImpl::template process_tile<false>; - -template class DepthwiseConvolution<4, 4, 3, 3, 2, 2, float, float>; +template class DepthwiseConvolution<4, 4, 3, 3, 2, 2, float, float, float>; } // namespace depthwise |