ctx.device_context() to CPUPlace

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

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

Loading…
Cancel
Save