diff --git a/paddle/fluid/lite/kernels/x86/sgd_compute.cc b/paddle/fluid/lite/kernels/x86/sgd_compute.cc index 4214fb73ff118061f7ce128b38b9f8a1e73704ea..b430f1faed210e2da2f98f17a0073ad6c907f0ea 100644 --- a/paddle/fluid/lite/kernels/x86/sgd_compute.cc +++ b/paddle/fluid/lite/kernels/x86/sgd_compute.cc @@ -31,7 +31,7 @@ class SGDCompute : public KernelLite { void Run() override { auto &context = ctx_->As(); auto &sgd_param = *param_.get_mutable(); - CHECK(context.x86_device_context); + CHECK(context.x86_device_context()); // param.Out->template mutable_data(); @@ -50,7 +50,7 @@ class SGDCompute : public KernelLite { const T *grad_data = grad->data(); int64_t rows_idx = 0; T *out_data = - param_out->mutable_data(context.x86_device_context->GetPlace()); + param_out->mutable_data(context.x86_device_context()->GetPlace()); auto sgd = paddle::operators::jit::KernelFuncs,