未验证 提交 457d012a 编写于 作者: Q qingqing01 提交者: GitHub

Enable device automatically switching in mine_hard_examples_op. (#8706)

上级 bbf98a01
...@@ -247,7 +247,7 @@ class MineHardExamplesOp : public framework::OperatorWithKernel { ...@@ -247,7 +247,7 @@ class MineHardExamplesOp : 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<framework::Tensor>("ClsLoss")->type()), framework::ToDataType(ctx.Input<framework::Tensor>("ClsLoss")->type()),
ctx.device_context()); platform::CPUPlace());
} }
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册