Skip to content

Commit

Permalink
[Docathon][Add API Legend No.9]add flatten lenged (PaddlePaddle#6770)
Browse files Browse the repository at this point in the history
* add flatten lenged

* 按要求修改为三维情况

* 根据要求进行修改

* 调整图片大小和质量

* 格式化文本

* Update docs/api/paddle/flatten_cn.rst

* 重新绘制图片

* 重新绘制图片

---------

Co-authored-by: zachary sun <70642955+sunzhongkai588@users.noreply.github.com>
  • Loading branch information
2 people authored and molly committed Sep 4, 2024
1 parent 0be3291 commit ca9bb88
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/api/paddle/flatten_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ flatten
得到:
Out.shape = (3 * 100 * 100 * 4)
下图展示了一个[2, 2, 2]的 Tensor 在经过不同参数的 Flatten 后的形状,数据依次为 0 到 7。

可以看到,在通过不同参数的 Flatten 后,Tensor 在 start_axis 与 stop_axis 维度间按照升序顺序重新排列元素。

.. image:: ../../images/api_legend/flatten.png
:alt: 图例
:width: 700

参数
::::::::::::

Expand Down
Binary file added docs/images/api_legend/flatten.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ca9bb88

Please sign in to comment.