We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 513bb6c commit be80bb4Copy full SHA for be80bb4
paddle/fluid/operators/softmax_op.h
@@ -36,7 +36,9 @@ class SoftmaxKernel : public framework::OpKernel<T> {
36
Tensor Out_2d = framework::ReshapeToMatrix(*Out, rank - 1);
37
38
#ifdef PADDLE_ON_INFERENCE
39
- math::SoftmaxFunctor<DeviceContext, T, true>()(
+ math::SoftmaxFunctor<
40
+ DeviceContext, T,
41
+ std::is_same<DeviceContext, platform::CPUDeviceContext>::value>()(
42
context.template device_context<DeviceContext>(), &X_2d, &Out_2d);
43
#else
44
math::SoftmaxFunctor<DeviceContext, T, false>()(
0 commit comments