From 783a1a6a8c32eee419a0ba174ae162ee332a7904 Mon Sep 17 00:00:00 2001 From: "Yao,kun" Date: Fri, 29 Jun 2018 16:07:05 +0800 Subject: [PATCH] delete IsExpand --- src/operators/kernel/arm/im2sequence_kernel.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/operators/kernel/arm/im2sequence_kernel.cpp b/src/operators/kernel/arm/im2sequence_kernel.cpp index cd3535784c..da14fea78c 100644 --- a/src/operators/kernel/arm/im2sequence_kernel.cpp +++ b/src/operators/kernel/arm/im2sequence_kernel.cpp @@ -17,18 +17,6 @@ limitations under the License. */ namespace paddle_mobile { namespace operators { -bool IsExpand(const std::vector &kernels, - const std::vector &strides, - const std::vector &paddings) { - bool kernels_1 = true, strides_1 = true, padding_0 = true; - for (size_t j = 0; j < strides.size(); ++j) { - kernels_1 = kernels_1 && (kernels[j] == 1); - strides_1 = strides_1 && (strides[j] == 1); - padding_0 = padding_0 && (paddings[j] == 0); - } - return !(kernels_1 && strides_1 && padding_0); -} - inline int Im2SeqOutputSize(int input_size, int filter_size, int padding_0, int padding_1, int stride) { const int output_size = -- GitLab