未验证 提交 38ef8d46 编写于 作者: yoonliu's avatar yoonliu 提交者: GitHub

flatten.c correction related to output dims (#1381)

After flatten layer, the input dims 4 should be squeezed to 2. The original bug with output dims 4 is corrected.
上级 1922410c
......@@ -53,7 +53,9 @@ static int infer_shape(struct node* node)
output->layout = TENGINE_LAYOUT_NHWC;
set_ir_tensor_shape(output, dims, 4);
//set_ir_tensor_shape(output, dims, 4);
//stephen@20220923
set_ir_tensor_shape(output, dims, 2);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册