CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 06:15:04 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/PaddlePaddle/Paddle.git
etag: W/"80ff8354f456eef7302a9d1a73600455"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=voLY8d3F37H7GN8TpOwNp8ELmRgnzxrTiGCd3mwWeCC1QqfRNODOq4TxDfCEFChbdzbN0LlnKppGAu5jVBe1hHTUgzhLrSdGU7wNGrSnZ%2BfAvkcVHpOV0nGRTJe%2F9O0SncHfEn7yE1gVA5cDCzeaWdGlljBk7c21W5om9vDmicRhsXNdfajBecsP1LENms6fiRdQ09S6nzESDJwo6rY7eJhTdI%2BVNtIAAEW%2BKFCIbsIhjTTQ88Y20sfywoIO5iRyfPpaJ4ieq0GvI3dEDrqsTA%3D%3D--VYhVAkuFJ9a3k%2BjA--ktzExmn4uOdeRAQpyCSjEA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.939071863.1753596903; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 06:15:03 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 06:15:03 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: EDB8:1369AB:B5B2B6:F1BCA3:6885C3E7
[Negative indexing] Support negative indices for all operators in the… · PaddlePaddle/Paddle@809bf6c · GitHub
Copy file name to clipboardExpand all lines: paddle/fluid/inference/tensorrt/plugin/gather_nd_op_plugin.cu
Copy file name to clipboardExpand all lines: paddle/fluid/prim/api/composite_backward/composite_backward_api.h
Copy file name to clipboardExpand all lines: paddle/fluid/primitive/rule/vjp/details.h
Copy file name to clipboardExpand all lines: paddle/phi/infermeta/binary.cc
Copy file name to clipboardExpand all lines: paddle/phi/infermeta/ternary.cc
Copy file name to clipboardExpand all lines: paddle/phi/kernels/cpu/gather_grad_kernel.cc
Copy file name to clipboardExpand all lines: paddle/phi/kernels/cpu/gather_kernel.cc
Copy file name to clipboardExpand all lines: paddle/phi/kernels/cpu/index_add_impl.h
Copy file name to clipboardExpand all lines: paddle/phi/kernels/cpu/index_select_impl.h
Copy file name to clipboardExpand all lines: paddle/phi/kernels/funcs/gather.cu.h
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit 809bf6c
authored
[Negative indexing] Support negative indices for all operators in the scatter/gather series. (#68780)
* support negtive index value for several kernels
* fix code and update unitest
* fix
* fix
* fix all bugs and update all unitest
* fix
* fix all bounds check
* update test_scatter_nd_op.py
* remove neg index error in test_scatter_op.py
* fix unitest and backward composite
* fix err msg too short
* fix low limit of GatherGPUKernel
* remove unnecessary code
* fix gather.cu.h
* fix converage and axis_value
* fix
* add negative index for getitem/setitem unitest
* fix GatherV2Function and GatherV2GradFunction and update gather/scatter unitest for converage
* remove print in unitest
* update scatter/gather op test for converage1 parent 88e1618 commit 809bf6cCopy full SHA for 809bf6c
File tree
Expand file treeCollapse file tree
32 files changed
+693
-257
lines changedFilter options
- paddle
- fluid
- inference/tensorrt/plugin
- primitive/rule/vjp
- prim/api/composite_backward
- phi
- infermeta
- kernels
- cpu
- funcs
- gpu
- impl
- xpu
- test
- indexing
- legacy_test
Expand file treeCollapse file tree
32 files changed
+693
-257
lines changedpaddle/fluid/inference/tensorrt/plugin/gather_nd_op_plugin.cu
Copy file name to clipboardExpand all lines: paddle/fluid/inference/tensorrt/plugin/gather_nd_op_plugin.cu+6-2Lines changed: 6 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
51 |
| - | |
| 51 | + | |
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
55 |
| - | |
| 55 | + | |
56 | 56 |
| |
| 57 | + | |
57 | 58 |
| |
| 59 | + | |
| 60 | + | |
| 61 | + | |
58 | 62 |
| |
59 | 63 |
| |
60 | 64 |
| |
|
paddle/fluid/prim/api/composite_backward/composite_backward_api.h
Copy file name to clipboardExpand all lines: paddle/fluid/prim/api/composite_backward/composite_backward_api.h+19-1Lines changed: 19 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
156 | 156 |
| |
157 | 157 |
| |
158 | 158 |
| |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
159 | 163 |
| |
160 | 164 |
| |
161 |
| - | |
| 165 | + | |
162 | 166 |
| |
163 | 167 |
| |
164 | 168 |
| |
| |||
1451 | 1455 |
| |
1452 | 1456 |
| |
1453 | 1457 |
| |
| 1458 | + | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
1454 | 1472 |
| |
1455 | 1473 |
| |
1456 | 1474 |
| |
|
paddle/fluid/primitive/rule/vjp/details.h
Copy file name to clipboardExpand all lines: paddle/fluid/primitive/rule/vjp/details.h+20-1Lines changed: 20 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
475 | 475 |
| |
476 | 476 |
| |
477 | 477 |
| |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
478 | 492 |
| |
479 | 493 |
| |
480 | 494 |
| |
| |||
1282 | 1296 |
| |
1283 | 1297 |
| |
1284 | 1298 |
| |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
1285 | 1304 |
| |
1286 | 1305 |
| |
1287 |
| - | |
| 1306 | + | |
1288 | 1307 |
| |
1289 | 1308 |
| |
1290 | 1309 |
| |
|
paddle/phi/infermeta/binary.cc
Copy file name to clipboardExpand all lines: paddle/phi/infermeta/binary.cc+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2024 | 2024 |
| |
2025 | 2025 |
| |
2026 | 2026 |
| |
2027 |
| - | |
| 2027 | + | |
2028 | 2028 |
| |
2029 | 2029 |
| |
2030 | 2030 |
| |
|
paddle/phi/infermeta/ternary.cc
Copy file name to clipboardExpand all lines: paddle/phi/infermeta/ternary.cc+7-7Lines changed: 7 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1796 | 1796 |
| |
1797 | 1797 |
| |
1798 | 1798 |
| |
1799 |
| - | |
1800 |
| - | |
| 1799 | + | |
1801 | 1800 |
| |
| 1801 | + | |
1802 | 1802 |
| |
1803 |
| - | |
1804 |
| - | |
1805 |
| - | |
1806 |
| - | |
1807 |
| - | |
| 1803 | + | |
| 1804 | + | |
| 1805 | + | |
| 1806 | + | |
| 1807 | + | |
1808 | 1808 |
| |
1809 | 1809 |
| |
1810 | 1810 |
| |
|
paddle/phi/kernels/cpu/gather_grad_kernel.cc
Copy file name to clipboardExpand all lines: paddle/phi/kernels/cpu/gather_grad_kernel.cc+3Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
| 34 | + | |
| 35 | + | |
| 36 | + | |
34 | 37 |
| |
35 | 38 |
| |
36 | 39 |
| |
|
paddle/phi/kernels/cpu/gather_kernel.cc
Copy file name to clipboardExpand all lines: paddle/phi/kernels/cpu/gather_kernel.cc+6Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
31 | 36 |
| |
32 | 37 |
| |
33 | 38 |
| |
| |||
45 | 50 |
| |
46 | 51 |
| |
47 | 52 |
| |
| 53 | + | |
48 | 54 |
| |
49 | 55 |
| |
50 | 56 |
| |
|
paddle/phi/kernels/cpu/index_add_impl.h
Copy file name to clipboardExpand all lines: paddle/phi/kernels/cpu/index_add_impl.h+8-3Lines changed: 8 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
56 | 56 |
| |
57 | 57 |
| |
58 | 58 |
| |
59 |
| - | |
| 59 | + | |
60 | 60 |
| |
61 | 61 |
| |
62 |
| - | |
| 62 | + | |
63 | 63 |
| |
| 64 | + | |
64 | 65 |
| |
65 | 66 |
| |
66 | 67 |
| |
67 | 68 |
| |
68 | 69 |
| |
69 | 70 |
| |
70 | 71 |
| |
71 |
| - | |
| 72 | + | |
72 | 73 |
| |
| 74 | + | |
73 | 75 |
| |
74 | 76 |
| |
75 | 77 |
| |
| |||
88 | 90 |
| |
89 | 91 |
| |
90 | 92 |
| |
| 93 | + | |
| 94 | + | |
| 95 | + | |
91 | 96 |
| |
92 | 97 |
| |
93 | 98 |
| |
|
paddle/phi/kernels/cpu/index_select_impl.h
Copy file name to clipboardExpand all lines: paddle/phi/kernels/cpu/index_select_impl.h+11-3Lines changed: 11 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
85 | 85 |
| |
86 | 86 |
| |
87 | 87 |
| |
88 |
| - | |
| 88 | + | |
89 | 89 |
| |
90 | 90 |
| |
91 |
| - | |
| 91 | + | |
92 | 92 |
| |
| 93 | + | |
93 | 94 |
| |
94 | 95 |
| |
95 | 96 |
| |
96 | 97 |
| |
97 | 98 |
| |
98 | 99 |
| |
99 | 100 |
| |
100 |
| - | |
| 101 | + | |
101 | 102 |
| |
| 103 | + | |
102 | 104 |
| |
103 | 105 |
| |
104 | 106 |
| |
| |||
116 | 118 |
| |
117 | 119 |
| |
118 | 120 |
| |
| 121 | + | |
| 122 | + | |
| 123 | + | |
119 | 124 |
| |
120 | 125 |
| |
121 | 126 |
| |
| |||
167 | 172 |
| |
168 | 173 |
| |
169 | 174 |
| |
| 175 | + | |
| 176 | + | |
| 177 | + | |
170 | 178 |
| |
171 | 179 |
| |
172 | 180 |
| |
|
paddle/phi/kernels/funcs/gather.cu.h
Copy file name to clipboardExpand all lines: paddle/phi/kernels/funcs/gather.cu.h+26-13Lines changed: 26 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
32 | 32 |
| |
33 | 33 |
| |
34 | 34 |
| |
35 |
| - | |
| 35 | + | |
| 36 | + | |
36 | 37 |
| |
37 | 38 |
| |
38 | 39 |
| |
39 |
| - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
40 | 43 |
| |
41 | 44 |
| |
42 | 45 |
| |
| |||
57 | 60 |
| |
58 | 61 |
| |
59 | 62 |
| |
60 |
| - | |
61 |
| - | |
62 |
| - | |
63 |
| - | |
64 |
| - | |
65 |
| - | |
66 |
| - | |
67 |
| - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
68 | 76 |
| |
69 | 77 |
| |
70 | 78 |
| |
| |||
112 | 120 |
| |
113 | 121 |
| |
114 | 122 |
| |
115 |
| - | |
| 123 | + | |
116 | 124 |
| |
117 | 125 |
| |
118 | 126 |
| |
| |||
180 | 188 |
| |
181 | 189 |
| |
182 | 190 |
| |
183 |
| - | |
| 191 | + | |
184 | 192 |
| |
185 | 193 |
| |
186 | 194 |
| |
187 |
| - | |
| 195 | + | |
| 196 | + | |
188 | 197 |
| |
| 198 | + | |
189 | 199 |
| |
| 200 | + | |
| 201 | + | |
| 202 | + | |
190 | 203 |
| |
191 | 204 |
| |
192 | 205 |
| |
|
You can’t perform that action at this time.
0 commit comments