提交 44b226ed 编写于 作者: H heqiaozhi

ctx.device_context() to CPUPlace

test=develop
上级 fa6ea1e0
...@@ -94,7 +94,7 @@ class CVMGradientOp : public framework::OperatorWithKernel { ...@@ -94,7 +94,7 @@ class CVMGradientOp : 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.
先完成此消息的编辑!
想要评论请 注册