未验证 提交 a66dfe9c 编写于 作者: G Guanghua Yu 提交者: GitHub

fix softnms type error (#1020)

上级 2a3cafdc
......@@ -610,7 +610,7 @@ class MultiClassSoftNMS(object):
res.set_lod([out_offsets])
if len(pred_res) == 0:
pred_res = np.array([[1]], dtype=np.float32)
res.set(np.vstack(pred_res), fluid.CPUPlace())
res.set(np.vstack(pred_res).astype(np.float32), fluid.CPUPlace())
return res
pred_result = create_tmp_var(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册