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

[SCU][Docathon][Add API Legend No.48]add illustration for as_strided API #69874

Merged
merged 30 commits into from
Jan 2, 2025
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
a1618ca
【SCU】【Paddle TensorRT No.59】Add pd_op.yolo_box_head converter
Sylence8 Nov 27, 2024
8f2ec71
【SCU】【Paddle TensorRT No.27、59】Add pd_op.logical_or、pd_op.yolo_box_he…
Sylence8 Nov 28, 2024
57fe6fe
Delete yolo_box_head
Sylence8 Nov 28, 2024
418ade1
Merge branch 'PaddlePaddle:develop' into oy
Sylence8 Nov 28, 2024
b41e589
Delete yolo_box_head
Sylence8 Nov 28, 2024
072e2f5
Merge branch 'PaddlePaddle:develop' into develop
Sylence8 Nov 28, 2024
4126829
delete none
Sylence8 Nov 28, 2024
309c557
Merge branch 'develop' of https://github.com/Sylence8/Paddle into dev…
Sylence8 Nov 28, 2024
2fa3a6b
Merge branch 'PaddlePaddle:develop' into develop
Sylence8 Nov 28, 2024
78422a0
Merge branch 'oy' into develop
Sylence8 Nov 28, 2024
34923ca
delete yolo
Sylence8 Nov 28, 2024
78a8715
[SCU][Docathon][Add API Legend No.48]add illustration for as_strided API
Sylence8 Dec 2, 2024
1141be5
Merge branch 'develop' of https://github.com/Sylence8/Paddle into dev…
Sylence8 Dec 2, 2024
daba2ac
delete logic
Sylence8 Dec 2, 2024
5b1f945
Update manipulation.py
Sylence8 Dec 2, 2024
4d6d375
none
Sylence8 Dec 2, 2024
2cf0614
Update manipulation.py
Sylence8 Dec 3, 2024
170494b
Merge branch 'PaddlePaddle:develop' into api
Sylence8 Dec 3, 2024
e49b047
Update manipulation.py
Sylence8 Dec 3, 2024
cc95bdb
Merge branch 'api' of https://github.com/Sylence8/Paddle into api
Sylence8 Dec 3, 2024
f83354b
Merge branch 'PaddlePaddle:develop' into api
Sylence8 Dec 10, 2024
b626344
Update manipulation.py
Sylence8 Dec 10, 2024
1d1ebce
Update manipulation.py
Sylence8 Dec 10, 2024
57f78b5
Merge branch 'PaddlePaddle:develop' into api
Sylence8 Dec 23, 2024
2e88a24
Merge branch 'PaddlePaddle:develop' into api
Sylence8 Dec 24, 2024
ae08c01
Merge branch 'PaddlePaddle:develop' into api
Sylence8 Dec 26, 2024
ee19fa6
Merge branch 'PaddlePaddle:develop' into api
Sylence8 Dec 26, 2024
84a235f
as_strided illustration
Sylence8 Dec 26, 2024
d52d444
Update python/paddle/tensor/manipulation.py
sunzhongkai588 Jan 2, 2025
8cf41af
Update python/paddle/tensor/manipulation.py
sunzhongkai588 Jan 2, 2025
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
6 changes: 6 additions & 0 deletions python/paddle/tensor/manipulation.py
Copy link
Contributor

Choose a reason for hiding this comment

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

为什么原有的空行要删除?会涉及到渲染出错的

Copy link
Contributor Author

Choose a reason for hiding this comment

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

收到

Original file line number Diff line number Diff line change
Expand Up @@ -7043,6 +7043,12 @@ def as_strided(
Note that the output Tensor will share data with origin Tensor and doesn't
have a Tensor copy in ``dygraph`` mode.

The following image illustrates an example: transforming an input Tensor with shape [2,4,6] into a Tensor with ``shape [8,6]`` and ``stride [6,1]``.


.. image:: https://githubraw.cdn.bcebos.com/PaddlePaddle/docs/develop/docs/images/api_legend/as_strided.png
:alt: Legend

Args:
x (Tensor): An N-D Tensor. The data type is ``float32``, ``float64``, ``int32``, ``int64`` or ``bool``
shape (list|tuple): Define the target shape. Each element of it should be integer.
Expand Down
Loading