ctx.device_context() to CPUPlace

test=develop
revert-16839-cmakelist_change
heqiaozhi 6 years ago
parent fa6ea1e0e6
commit 44b226eda6

@ -94,7 +94,7 @@ class CVMGradientOp : public framework::OperatorWithKernel {
framework::OpKernelType GetExpectedKernelType(
const framework::ExecutionContext& ctx) const override {
return framework::OpKernelType(ctx.Input<Tensor>("X")->type(),
ctx.device_context());
platform::CPUPlace());
}
};

Loading…
Cancel
Save