提交 e9d79dd5 编写于 作者: H heqiaozhi

ctx.device_context() to CPUPlace

test=develop
上级 44b226ed
2 合并请求!17061Align pyramid,!16741add continuous value model op
......@@ -53,7 +53,7 @@ class CVMOp : 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());
}
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部