From 429309fbe87eebdad766836aa419ab0fb1152391 Mon Sep 17 00:00:00 2001 From: dolphin8 Date: Wed, 19 Sep 2018 16:09:45 +0800 Subject: [PATCH] concat --- .../Operators/Kernels/metal/ConcatKernel.inc.metal | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metal/paddle-mobile/paddle-mobile/Operators/Kernels/metal/ConcatKernel.inc.metal b/metal/paddle-mobile/paddle-mobile/Operators/Kernels/metal/ConcatKernel.inc.metal index b62daaa3aa..c1af35de00 100644 --- a/metal/paddle-mobile/paddle-mobile/Operators/Kernels/metal/ConcatKernel.inc.metal +++ b/metal/paddle-mobile/paddle-mobile/Operators/Kernels/metal/ConcatKernel.inc.metal @@ -65,7 +65,7 @@ kernel void FUNC(concat, R, N, VV, P)(texture2d_array in0 [[tex } k -= cp.vdim[j]; } - if (k > cp.vdim[N-1]) { + if (j == N) { continue; } int ta = cp.odim[cp.axis]; -- GitLab