Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docathon][Add API Legend No.49]add the picture of view #6998

Open
wants to merge 24 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
a3dfeb3
[Add API Legend No.49]为view增加图例
Nov 27, 2024
db06c45
Clean lod_tensor.md (#6976)
co63oc Nov 18, 2024
aa032a8
新增 torchvision 和 paddle.vision 的对应关系(第三批) (#6959)
guozixu2001 Nov 18, 2024
21132b8
修复 paddle.set_default_dtype 文档 (#6981)
NKNaN Nov 19, 2024
6d2124f
Fix distribution API with 0-D input parameters 易用性提升 -part2 (#6982)
NKNaN Nov 19, 2024
ed84570
缺失映射文档补充 (#6962)
Xuxuanang Nov 19, 2024
0e2f75e
【SCU】【Paddle Tensor No.24】docs: Add docs for paddle.matrix_transpose,…
PolaKuma Nov 19, 2024
b5b7b8f
[Docathon][Add API Legend No.13] add a figure of gather_nd (#6943)
MrYo666 Nov 20, 2024
8fdd58b
docs: 新增`paddle.less`,`Tensor.less`中文文档 (#6989)
MrXnneHang Nov 21, 2024
3cfde13
【Paddle Tensor No.13】新增`paddle.positive` 中文文档. (#6972)
MrXnneHang Nov 21, 2024
43fbfa5
[Docathon][Add API Legend No.46]add the legend of index_put -part (#6…
fxy1699 Nov 22, 2024
c5781cd
[SCU][Docathon][Add API Legend No.48]为as_strided API添加图例 (#6968)
Sylence8 Nov 25, 2024
8eaf106
[Docathon][Add API Legend No.19]+添加图例至paddle.scatter -part (#6973)
jiachengdai Nov 25, 2024
f73df84
Add PIR doc (#6986)
tianshuo78520a Nov 26, 2024
ff51fc9
[Docathon][Add API Legend No.1] Add the picture of broadcast_to (#6950)
hanyang2508 Nov 26, 2024
7f8c358
Fix docs (#6993)
Xuxuanang Nov 26, 2024
64fa424
paddle.bernoulli add parameter p 易用性提升 (#6992)
NKNaN Nov 27, 2024
2a39312
error
Nov 27, 2024
cbc552c
Size
Nov 27, 2024
057d4e5
【SCU】【Paddle Tensor No.24】docs: update docs for paddle.linalg.matrix_…
PolaKuma Nov 27, 2024
49c00de
three
WSBG Nov 27, 2024
b03e38e
Merge branch 'develop' of https://github.com/PaddlePaddle/docs into M…
WSBG Nov 27, 2024
7bdddfc
Merge branch 'develop' of https://github.com/PaddlePaddle/docs into M…
WSBG Nov 27, 2024
0a2612e
Merge branch 'MY_Space' of https://github.com/WSBG/docs into MY_Space
WSBG Nov 28, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/api/paddle/view_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ view

仅在动态图下可用,返回的 Tensor 和 x 共享内存。

下图展示了一个 view 操作的情形——一个形状为 [2, 4, 6] 的三维张量通过 view 操作转变为形状为 [8, 6] 的二维张量。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
下图展示了一个 view 操作的情形——一个形状为 [2, 4, 6] 的三维张量通过 view 操作转变为形状为 [8, 6] 的二维张量。
下图展示了一个 view 操作的情形——一个形状为 [2, 4, 6] 的三维张量通过 view 操作返回形状为 [8, 6] 的二维张量。


.. image:: ../../images/api_legend/view.png
:alt: 图例

参数
:::::::::

Expand Down
Binary file added docs/images/api_legend/view.png
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • 需要在图例里标明各自的维度 axis=0 axis=1 axis=22
  • 可以的话在图例中注明 tensor 的数据

可以参考 https://www.paddlepaddle.org.cn/documentation/docs/zh/guides/beginner/tensor_cn.html#tensor-shape

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.