From a1e96e471c413d8a2291cb0b1e884f7a5de19c29 Mon Sep 17 00:00:00 2001 From: limingshu <61349199+JamesLim-sy@users.noreply.github.com> Date: Thu, 23 Feb 2023 18:54:25 +0800 Subject: [PATCH] first commit (#50808) --- paddle/phi/kernels/impl/slice_kernel_impl.h | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/paddle/phi/kernels/impl/slice_kernel_impl.h b/paddle/phi/kernels/impl/slice_kernel_impl.h index 78ed41d9f07..2b1c2d87dbd 100644 --- a/paddle/phi/kernels/impl/slice_kernel_impl.h +++ b/paddle/phi/kernels/impl/slice_kernel_impl.h @@ -36,19 +36,8 @@ void SliceCompute(const Context& ctx, // Step 1: Get the accurate attribute value of starts and ends std::vector starts = starts_t; std::vector ends = ends_t; - PADDLE_ENFORCE_EQ( - starts.size(), - axes.size(), - phi::errors::InvalidArgument( - "The size of starts must be equal to the size of axes.")); - PADDLE_ENFORCE_EQ(ends.size(), - axes.size(), - phi::errors::InvalidArgument( - "The size of ends must be equal to the size of axes.")); - // Step 2: Compute output auto in = &input; - auto in_dims = in->dims(); auto out_dims = out->dims(); auto slice_dims = out_dims; -- GitLab