test=develop
panyx0718-patch-1
chengduo 6 years ago committed by GitHub
parent 38f499df7d
commit 9f68e9a7fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -53,7 +53,7 @@ class AucOp : public framework::OperatorWithKernel {
const framework::ExecutionContext &ctx) const override { const framework::ExecutionContext &ctx) const override {
return framework::OpKernelType( return framework::OpKernelType(
framework::ToDataType(ctx.Input<Tensor>("Predict")->type()), 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 { const framework::ExecutionContext& ctx) const override {
return framework::OpKernelType( return framework::OpKernelType(
framework::ToDataType(ctx.Input<Tensor>("Input")->type()), 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 { const framework::ExecutionContext& ctx) const override {
return framework::OpKernelType( return framework::OpKernelType(
framework::ToDataType(ctx.Input<Tensor>("Input")->type()), framework::ToDataType(ctx.Input<Tensor>("Input")->type()),
ctx.GetPlace()); platform::CPUPlace());
} }
}; };

Loading…
Cancel
Save