未验证 提交 33dbe147 编写于 作者: J Jason 提交者: GitHub

Update Flatten.md

上级 0fcaae6a
......@@ -30,10 +30,10 @@ paddle.fluid.layers.reshape(
### 功能差异
#### 输入参数
Caffe:分别使用参数`axis``end_axis`表示起始轴和结束轴,[axis+1, end_axis]区间轴上的数据将被压缩至一维,
但如若`axis+1==end_axis`时,则会在`end_axis`插入一维;
Caffe:分别使用参数`axis``end_axis`表示起始轴和结束轴,[axis, end_axis]轴上的数据将被压缩至一维,
但如若`axis-end_axis==1`时,则会在`axis`轴之后插入一维;
> 输入数据shape[2, 3, 4, 5]
> axis=1, end_axis=3:输出shape[2, 3, 20]
> axis=2, end_axis=3:输出shape[2, 3, 4, 1, 5]
> axis=1, end_axis=3:输出shape[2, 60]
> axis=3, end_axis=2:输出shape[2, 3, 4, 1, 5]
PaddlePaddle:通过在`shape`参数设置具体的输出shape。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册