From b628c316148b072b73b38a6820c5328b4a782c79 Mon Sep 17 00:00:00 2001 From: feng_shuai Date: Mon, 15 Nov 2021 16:26:00 +0800 Subject: [PATCH] fix:delete macro INFERENCE (#37130) --- paddle/fluid/operators/softmax_op.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/paddle/fluid/operators/softmax_op.h b/paddle/fluid/operators/softmax_op.h index 68a1649d0a0..497bbb06dab 100644 --- a/paddle/fluid/operators/softmax_op.h +++ b/paddle/fluid/operators/softmax_op.h @@ -74,16 +74,9 @@ class SoftmaxKernel : public framework::OpKernel { Tensor X_2d, Out_2d; X_2d.ShareDataWith(*X).Resize({n, d}); Out_2d.ShareDataWith(*Out).Resize({n, d}); - -#ifdef PADDLE_ON_INFERENCE - math::SoftmaxFunctor()( - context.template device_context(), axis_dim, &X_2d, - &Out_2d); -#else math::SoftmaxFunctor()( context.template device_context(), axis_dim, &X_2d, &Out_2d); -#endif } }; -- GitLab