diff --git a/paddle/fluid/operators/cvm_op.cc b/paddle/fluid/operators/cvm_op.cc index b02cf10230f119787fd847ca5494b8c56cfae176..eb940c5098c53501a4b158ca69ad83573aaaa2d9 100644 --- a/paddle/fluid/operators/cvm_op.cc +++ b/paddle/fluid/operators/cvm_op.cc @@ -53,7 +53,7 @@ class CVMOp : public framework::OperatorWithKernel { framework::OpKernelType GetExpectedKernelType( const framework::ExecutionContext& ctx) const override { return framework::OpKernelType(ctx.Input("X")->type(), - ctx.device_context()); + platform::CPUPlace()); } };