Skip to content

Commit 457d012

Browse files
authored
Enable device automatically switching in mine_hard_examples_op. (#8706)
1 parent bbf98a0 commit 457d012

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/fluid/operators/mine_hard_examples_op.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ class MineHardExamplesOp : public framework::OperatorWithKernel {
247247
const framework::ExecutionContext& ctx) const override {
248248
return framework::OpKernelType(
249249
framework::ToDataType(ctx.Input<framework::Tensor>("ClsLoss")->type()),
250-
ctx.device_context());
250+
platform::CPUPlace());
251251
}
252252
};
253253

0 commit comments

Comments
 (0)