未验证 提交 9f68e9a7 编写于 作者: C chengduo 提交者: GitHub

fix auc op (#14385)

test=develop
上级 38f499df
......@@ -53,7 +53,7 @@ class AucOp : public framework::OperatorWithKernel {
const framework::ExecutionContext &ctx) const override {
return framework::OpKernelType(
framework::ToDataType(ctx.Input<Tensor>("Predict")->type()),
ctx.device_context());
platform::CPUPlace());
}
};
......
......@@ -69,7 +69,7 @@ class NCEOp : public framework::OperatorWithKernel {
const framework::ExecutionContext& ctx) const override {
return framework::OpKernelType(
framework::ToDataType(ctx.Input<Tensor>("Input")->type()),
ctx.GetPlace());
platform::CPUPlace());
}
};
......@@ -174,7 +174,7 @@ class NCEOpGrad : public framework::OperatorWithKernel {
const framework::ExecutionContext& ctx) const override {
return framework::OpKernelType(
framework::ToDataType(ctx.Input<Tensor>("Input")->type()),
ctx.GetPlace());
platform::CPUPlace());
}
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册