Skip to content

Commit

Permalink
Enable device automatically switching in mine_hard_examples_op. (#8706)
Browse files Browse the repository at this point in the history
  • Loading branch information
qingqing01 committed Mar 5, 2018
1 parent bbf98a0 commit 457d012
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddle/fluid/operators/mine_hard_examples_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ class MineHardExamplesOp : public framework::OperatorWithKernel {
const framework::ExecutionContext& ctx) const override {
return framework::OpKernelType(
framework::ToDataType(ctx.Input<framework::Tensor>("ClsLoss")->type()),
ctx.device_context());
platform::CPUPlace());
}
};

Expand Down

0 comments on commit 457d012

Please sign in to comment.