提交 e9d79dd5 编写于 作者: H heqiaozhi

ctx.device_context() to CPUPlace

test=develop
上级 44b226ed
...@@ -53,7 +53,7 @@ class CVMOp : public framework::OperatorWithKernel { ...@@ -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());
} }
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册