提交 5fe4d7fb 编写于 作者: S sweetsky0901

modify a bug *input_nums

上级 8ec20b22
......@@ -71,10 +71,11 @@ class Detection_output_Kernel : public framework::OpKernel<T> {
framework::make_ddim(conf_shape_softmax_vec));
// for knchw => nhwc
std::vector<int64_t> loc_shape_vec({1, in_loc->dims()[1], in_loc->dims()[3],
in_loc->dims()[4], in_loc->dims()[2]});
std::vector<int64_t> conf_shape_vec({1, in_conf->dims()[1],
in_conf->dims()[3], in_conf->dims()[4],
in_conf->dims()[2]});
in_loc->dims()[4],
in_loc->dims()[2] * in_loc->dims()[0]});
std::vector<int64_t> conf_shape_vec(
{1, in_conf->dims()[1], in_conf->dims()[3], in_conf->dims()[4],
in_conf->dims()[2] * in_conf->dims()[0]});
framework::DDim loc_shape(framework::make_ddim(loc_shape_vec));
framework::DDim conf_shape(framework::make_ddim(conf_shape_vec));
framework::Tensor loc_tensor;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册