diff --git a/paddle/pten/kernels/gpu/trace_kernel.cu b/paddle/pten/kernels/gpu/trace_kernel.cu index b0bfb3a8a51865df55a507506fe870016ac9181e..155bfbd02af17c390e83a84a269df01a77b11637 100644 --- a/paddle/pten/kernels/gpu/trace_kernel.cu +++ b/paddle/pten/kernels/gpu/trace_kernel.cu @@ -33,9 +33,8 @@ void TraceKernel(const Context& ctx, auto stream = ctx.stream(); std::vector reduce_dims; reduce_dims.push_back(out->dims().size()); - kernels:: - TensorReduceFunctorImpl>( - ctx, diag, out, kps::IdentityFunctor(), reduce_dims, stream); + kernels::TensorReduceImpl>( + ctx, diag, out, kps::IdentityFunctor(), reduce_dims, stream); } else { paddle::operators::math::SetConstant functor; functor(ctx, out, static_cast(0));