From be80bb4f28f4a50cfbc96edd790227f59273d20e Mon Sep 17 00:00:00 2001 From: Jacek Czaja Date: Fri, 16 Nov 2018 20:01:56 +0100 Subject: [PATCH] - Fix to GPU test=develop --- paddle/fluid/operators/softmax_op.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/paddle/fluid/operators/softmax_op.h b/paddle/fluid/operators/softmax_op.h index 91829d576..8eb5c7691 100644 --- a/paddle/fluid/operators/softmax_op.h +++ b/paddle/fluid/operators/softmax_op.h @@ -36,7 +36,9 @@ class SoftmaxKernel : public framework::OpKernel { Tensor Out_2d = framework::ReshapeToMatrix(*Out, rank - 1); #ifdef PADDLE_ON_INFERENCE - math::SoftmaxFunctor()( + math::SoftmaxFunctor< + DeviceContext, T, + std::is_same::value>()( context.template device_context(), &X_2d, &Out_2d); #else math::SoftmaxFunctor()( -- GitLab