diff --git a/src/operators/kernel/arm/concat_kernel.cpp b/src/operators/kernel/arm/concat_kernel.cpp index 2a653234a6c18664a134d89383ae99eb3681eeda..705b698dbe9e9768713417f85ae2879df66acf9e 100644 --- a/src/operators/kernel/arm/concat_kernel.cpp +++ b/src/operators/kernel/arm/concat_kernel.cpp @@ -51,38 +51,6 @@ class ConcatFunctor { } } }; -// template -// void StridedNumelCopyWithAxis(int64_t axis, T *dst, -// const framework::DDim &dst_stride_numel, -// const T *src, -// const framework::DDim &src_stride_numel, -// int64_t size) { -// int64_t before = dst_stride_numel[0] / dst_stride_numel[axis]; -// int64_t src_after = src_stride_numel[axis]; -// int64_t dst_after = dst_stride_numel[axis]; -// -// /// "src and dst tensor should have the same dims size." -// assert(src_stride_numel.size() == dst_stride_numel.size()); -// -// for (int64_t i = 0; i < axis; ++i) { -// if (i < axis) { -// /// src and dst should have the same elements -// /// except the specified axis. -// assert(src_stride_numel[i] / src_stride_numel[axis] == -// dst_stride_numel[i] / dst_stride_numel[axis]); -// -// } else if (i == axis) { -// continue; -// } else { -// /// "src and dst should have the same elements " -// /// "except the specified axis." -// assert(src_stride_numel[i] == dst_stride_numel[i]); -// } -// } -// for (int64_t i = 0; i < before; ++i) { -// memory::Copy(dst + i * dst_after, src + i * src_after, sizeof(T) * size); -// } -//} template <> void ConcatKernel::Compute(const ConcatParam ¶m) const {