From ded34b2c0f648409c0dd970c2e1ff5efa4817091 Mon Sep 17 00:00:00 2001 From: qingqing01 Date: Thu, 8 Mar 2018 09:29:19 +0800 Subject: [PATCH] Fix detection_map_op for multi-device. (#8845) --- paddle/fluid/operators/detection_map_op.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/operators/detection_map_op.cc b/paddle/fluid/operators/detection_map_op.cc index 9b8ca925373..73c84c2fe01 100644 --- a/paddle/fluid/operators/detection_map_op.cc +++ b/paddle/fluid/operators/detection_map_op.cc @@ -71,7 +71,7 @@ class DetectionMAPOp : public framework::OperatorWithKernel { return framework::OpKernelType( framework::ToDataType( ctx.Input("DetectRes")->type()), - ctx.device_context()); + platform::CPUPlace()); } }; -- GitLab