Fix detection_map_op for multi-device. (#8845)

shanyi15-patch-2
qingqing01 7 years ago committed by GitHub
parent 7f00716c87
commit ded34b2c0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -71,7 +71,7 @@ class DetectionMAPOp : public framework::OperatorWithKernel {
return framework::OpKernelType( return framework::OpKernelType(
framework::ToDataType( framework::ToDataType(
ctx.Input<framework::Tensor>("DetectRes")->type()), ctx.Input<framework::Tensor>("DetectRes")->type()),
ctx.device_context()); platform::CPUPlace());
} }
}; };

Loading…
Cancel
Save