From 87f4a681ae3f4c73e8ad004977993d3d4cd18c4c Mon Sep 17 00:00:00 2001 From: hong <43953930+phlrain@users.noreply.github.com> Date: Wed, 9 Feb 2022 17:54:52 +0800 Subject: [PATCH] Fix trace conflict (#39421) * add trace op * bug fix * bug fix; test=develop * thrust bug fix; test=develop * remove useless register; test=develop * fix bug; test=develop * update trace kernel; test=develop * move kernel args to trace_sig; test=develop * try to fix trace kernel conflict; test=develop --- paddle/pten/kernels/gpu/trace_kernel.cu | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/paddle/pten/kernels/gpu/trace_kernel.cu b/paddle/pten/kernels/gpu/trace_kernel.cu index b0bfb3a8a5..155bfbd02a 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)); -- GitLab