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.18]add illustration for roll API #66995

Closed
wants to merge 45 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
4542521
add illustration for roll API
haoyu2022 Aug 4, 2024
c2df94a
Update fused_layer_norm.py
haoyu2022 Aug 5, 2024
2e850e0
Merge branch 'PaddlePaddle:develop' into my-cool-stuff
haoyu2022 Aug 5, 2024
b356474
add type annotations
haoyu2022 Aug 5, 2024
d0cc93d
[Dy2St] Use more meaningful name in program input and output (#66934)
SigureMo Aug 4, 2024
02662e1
[Typing][C-79] Add type annotations for `python/paddle/incubate/nn/fu…
Turingg Aug 4, 2024
dcf94ab
[Typing][C-5, C-6] Add type annotations for `python/paddle/distribute…
megemini Aug 4, 2024
f561d95
[Typing][C-8] Add type annotations for `python/paddle/distributed/aut…
megemini Aug 4, 2024
9f4f021
[Typing][B-49] Add type annotations for `python/paddle/base/layer_hel…
ooooo-create Aug 4, 2024
69ee16f
[Typing][C-53,C-54] Add type annotations for `python/paddle/distribut…
megemini Aug 4, 2024
0959294
[Typing][C-10, C-11] Add type annotations for `python/paddle/distribu…
megemini Aug 4, 2024
277a92d
[CodeStyle][PLE0101] Clean an explicit return in `__init__` (#66997)
SigureMo Aug 5, 2024
5f90b23
[Infra] Fix PR template missing a whitespace (#67000)
SigureMo Aug 5, 2024
83eceec
[Typing][C-27,C-28,C-29,C-30,C-31,C-32,C-33] Add type annotations for…
megemini Aug 5, 2024
3a86bde
【Error Message No. 11,23,24,33,46 BUAA】change CHECK_ and CHECK into P…
Caogration Aug 5, 2024
10a4bef
first try (#66958)
crazyxiaoxi Aug 5, 2024
369c816
[Prim][PIR] Surport dynamic shape for matmul_grad (#66835)
zeroRains Aug 5, 2024
56cdfa7
[Prim][PIR] fallback mechanism to support dropout op (#66711)
cubehan3 Aug 5, 2024
31fdfb5
fix the unit test: test_semi_auto_llama_acc_align (#66955)
winter-wang Aug 5, 2024
7dd99a0
Replace phi::errors [fluid_ops] part15 (#66904)
co63oc Aug 5, 2024
7be849e
Replace phi::errors [fluid_ops] part11 (#66900)
co63oc Aug 5, 2024
a6e217f
【Infer Symbolic Shape BUAA No.70】Add lerp op (#66837)
Marcusryz Aug 5, 2024
949eddd
Replace framework::LoDTensorArray part2 [fluid_ops] (#66913)
co63oc Aug 5, 2024
8f55dd7
[Typing][PEP585 Upgrade][2-3] Use stardand collections for type hints…
enkilee Aug 5, 2024
4e94bd4
[PIR Unittest] fix pir ut (`test_while_op,test_norm_nn_grad`) (#66785)
ooooo-create Aug 5, 2024
496548f
【Infer Symbolic Shape BUAA】add clipbynorm, ctcalign, identityloss (#6…
uanu2002 Aug 5, 2024
8779d66
Migrate paddle/fluid/memory [fluid_ops] (#66393)
co63oc Aug 5, 2024
00bddd5
【Hackathon 6th Fundable Projects 3 No.225】 [fluid_ops] margin_cross_e…
co63oc Aug 5, 2024
4ac817b
Replace phi::errors [fluid_ops] part1 (#66545)
co63oc Aug 5, 2024
151ecb5
[Doc] Fix embedding doc; test=document_fix (#66974)
AndPuQing Aug 5, 2024
eeabf7d
【Infer Symbolic Shape BUAA No.12】Add channelshuffle op (#66946)
Guanhuachen2003 Aug 5, 2024
4290411
[auto_parallel] Layered Implementation of load_state_dict (#66925)
xingmingyyj Aug 5, 2024
a9aab9b
【BUAA】【Error Message No.16,18】Update error message (#66988)
Marcusryz Aug 5, 2024
30a3f22
[Typing][C-125,C-126] Add type annotations for `python/paddle/audio/b…
SigureMo Aug 5, 2024
19503e3
【BUAA】【Error Message No.45,81,143】Update error message (#66983)
Marcusryz Aug 5, 2024
5534248
[Fix PIR Unittest] fix pir ut in test/contrib/`test_multi_precision_f…
ooooo-create Aug 5, 2024
bc59715
fix pir ut test_quant_linear_op (#66959)
ooooo-create Aug 5, 2024
86ad4a4
[XPU] update XHPC date to 240804 (#66998)
lj970926 Aug 5, 2024
0d735ff
[Typing][C-111] Add type annotations for `python/paddle/base/executor…
SigureMo Aug 5, 2024
019d57c
[CINN / Fusion] Support fusion of Pattern with multi downstream (#66034)
huangjiyi Aug 5, 2024
366db5a
【Infer Symbolic Shape BUAA No.21】dequantize_abs_max (#66570)
tlxd Aug 5, 2024
972a40a
update check pr template,test=document_fix (#67010)
XieYunshen Aug 5, 2024
7988907
【Infer Symbolic Shape BUAA No.35】Add equal_all op (#66888)
lwkhahaha Aug 5, 2024
7dcbc8a
Delete python/paddle/incubate/nn/functional/fused_layer_norm.py
haoyu2022 Aug 5, 2024
1adc42c
Merge branch 'my-cool-stuff' of https://github.com/haoyu2022/Paddle i…
haoyu2022 Aug 5, 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
146 changes: 0 additions & 146 deletions python/paddle/incubate/nn/functional/fused_layer_norm.py

This file was deleted.

8 changes: 8 additions & 0 deletions python/paddle/tensor/manipulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1946,6 +1946,14 @@ def roll(
name(str|None, optional): The default value is None. Normally there is no need for user to set this property.
For more information, please refer to :ref:`api_guide_Name` .

The image below shows a 2D tensor of shape `[[1,2,3],[4,5,6],[7,8,9]]` transformed into a tensor of different
shape through a roll operation. When a global roll (without the `axis` parameter) is applied, the tensor is flattened
into a 1D array, cyclically rolled, and then reshaped to its original form. When rolled along rows (`axis=0`), the
tensor is cyclically rolled along its rows; when rolled along columns (`axis=1`), the tensor is cyclically rolled along
its columns. From the above operations, we can observe the positional changes of each element under different roll operations.

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

Returns:
Tensor, A Tensor with same data type as `x`.
Expand Down