CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 11:24:10 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/"2f6c307be06bfeac0ace0bc92bcae95c"
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=1lKbXN3aRyuVLqmG4EPQbsfuVDi2umu3fUd8erMZfkKS%2F1B2Y3yIlayHkbeUkTd5WJg5vnITU%2BzKnGxYG9qap3E5eJbiNolO9lVamJLwHELiJd%2BH1ErDRzEuBZqDQxfGcBa5A5FsRPmcYVrDml5dJ%2B7BJchpfdhcOLg0uku%2FRSOkk%2FXd0z0xXXbtJxRr%2BKjnxsG9JP9ymGcXDeVRWrrvp9%2B9OoRIBdOt8fidAgz%2BAd6jHjfBQzKXjT7uCx3pow8HpqDebvpHKVeqRWWpHfsn0g%3D%3D--5wExPztuUuxh8R3k--tWYEPuoZpqJHPx6PZnwp5A%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.492768668.1753615450; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 11:24:10 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 11:24:10 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: AD42:2F5ED7:D93F23:11F0CBC:68860C5A
[0-size Tensor No.269、282、339] Add 0-size Tensor support for subtract… · PaddlePaddle/Paddle@93c7be1 · GitHub
Copy file name to clipboardExpand all lines: paddle/phi/kernels/cpu/elementwise_subtract_grad_kernel.cc
Copy file name to clipboardExpand all lines: paddle/phi/kernels/cpu/elementwise_subtract_kernel.cc
Copy file name to clipboardExpand all lines: paddle/phi/kernels/gpu/elementwise_grad_kernel.cu
Copy file name to clipboardExpand all lines: paddle/phi/kernels/kps/elementwise_kernel.cu
Copy file name to clipboardExpand all lines: paddle/phi/kernels/onednn/elementwise_grad_kernel.cc
Copy file name to clipboardExpand all lines: paddle/phi/kernels/onednn/elementwise_kernel.cc
Copy file name to clipboardExpand all lines: paddle/phi/kernels/xpu/elementwise_subtract_grad_kernel.cc
Copy file name to clipboardExpand all lines: paddle/phi/kernels/xpu/elementwise_subtract_kernel.cc
Copy file name to clipboardExpand all lines: test/legacy_test/test_elementwise_sub_op.py
Copy file name to clipboardExpand all lines: test/legacy_test/test_subtract_op.py
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit 93c7be1
authored
[0-size Tensor No.269、282、339] Add 0-size Tensor support for subtract API. (#72914)
* fix 0 size Tensor for expand kernel in onednn
* format
* expand_grad support 0 size Tensor
* fix bug and add unittest
* modify the unittest for onednn kernel
* modify expand unittest to force enable onednn op
* fix subtract
* fix unittest1 parent 4178730 commit 93c7be1Copy full SHA for 93c7be1
File tree
Expand file treeCollapse file tree
11 files changed
+191
-16
lines changedFilter options
- paddle/phi/kernels
- cpu
- gpu
- kps
- onednn
- xpu
- test
- legacy_test
- mkldnn
Expand file treeCollapse file tree
11 files changed
+191
-16
lines changedpaddle/phi/kernels/cpu/elementwise_subtract_grad_kernel.cc
Copy file name to clipboardExpand all lines: paddle/phi/kernels/cpu/elementwise_subtract_grad_kernel.cc+18-1Lines changed: 18 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
| 20 | + | |
20 | 21 |
| |
21 | 22 |
| |
22 |
| - | |
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
| |||
32 | 32 |
| |
33 | 33 |
| |
34 | 34 |
| |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
35 | 52 |
| |
36 | 53 |
| |
37 | 54 |
| |
|
paddle/phi/kernels/cpu/elementwise_subtract_kernel.cc
Copy file name to clipboardExpand all lines: paddle/phi/kernels/cpu/elementwise_subtract_kernel.cc+1-2Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
30 |
| - | |
31 |
| - | |
| 30 | + | |
32 | 31 |
| |
33 | 32 |
| |
34 | 33 |
| |
|
paddle/phi/kernels/gpu/elementwise_grad_kernel.cu
Copy file name to clipboardExpand all lines: paddle/phi/kernels/gpu/elementwise_grad_kernel.cu+17Lines changed: 17 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
43 | 60 |
| |
44 | 61 |
| |
45 | 62 |
| |
|
paddle/phi/kernels/kps/elementwise_kernel.cu
Copy file name to clipboardExpand all lines: paddle/phi/kernels/kps/elementwise_kernel.cu+1-2Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
32 | 32 |
| |
33 | 33 |
| |
34 | 34 |
| |
35 |
| - | |
36 |
| - | |
| 35 | + | |
37 | 36 |
| |
38 | 37 |
| |
39 | 38 |
| |
|
paddle/phi/kernels/onednn/elementwise_grad_kernel.cc
Copy file name to clipboardExpand all lines: paddle/phi/kernels/onednn/elementwise_grad_kernel.cc+18Lines changed: 18 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
| 22 | + | |
22 | 23 |
| |
23 | 24 |
| |
24 | 25 |
| |
| |||
121 | 122 |
| |
122 | 123 |
| |
123 | 124 |
| |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
124 | 142 |
| |
125 | 143 |
| |
126 | 144 |
| |
|
paddle/phi/kernels/onednn/elementwise_kernel.cc
Copy file name to clipboardExpand all lines: paddle/phi/kernels/onednn/elementwise_kernel.cc+4Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
54 | 54 |
| |
55 | 55 |
| |
56 | 56 |
| |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
57 | 61 |
| |
58 | 62 |
| |
59 | 63 |
| |
|
paddle/phi/kernels/xpu/elementwise_subtract_grad_kernel.cc
Copy file name to clipboardExpand all lines: paddle/phi/kernels/xpu/elementwise_subtract_grad_kernel.cc+19Lines changed: 19 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
| 19 | + | |
19 | 20 |
| |
20 | 21 |
| |
21 | 22 |
| |
| |||
29 | 30 |
| |
30 | 31 |
| |
31 | 32 |
| |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
32 | 51 |
| |
33 | 52 |
| |
34 | 53 |
| |
|
paddle/phi/kernels/xpu/elementwise_subtract_kernel.cc
Copy file name to clipboardExpand all lines: paddle/phi/kernels/xpu/elementwise_subtract_kernel.cc+4Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
27 | 31 |
| |
28 | 32 |
| |
29 | 33 |
| |
|
test/legacy_test/test_elementwise_sub_op.py
Copy file name to clipboardExpand all lines: test/legacy_test/test_elementwise_sub_op.py+38-3Lines changed: 38 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
32 | 32 |
| |
33 | 33 |
| |
34 | 34 |
| |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
35 | 41 |
| |
36 | 42 |
| |
37 | 43 |
| |
38 | 44 |
| |
39 |
| - | |
40 |
| - | |
41 |
| - | |
42 | 45 |
| |
43 | 46 |
| |
44 | 47 |
| |
| |||
1151 | 1154 |
| |
1152 | 1155 |
| |
1153 | 1156 |
| |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
1154 | 1189 |
| |
1155 | 1190 |
| |
1156 | 1191 |
| |
|
test/legacy_test/test_subtract_op.py
Copy file name to clipboardExpand all lines: test/legacy_test/test_subtract_op.py+45-8Lines changed: 45 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
44 | 44 |
| |
45 | 45 |
| |
46 | 46 |
| |
47 |
| - | |
48 |
| - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
49 | 53 |
| |
50 | 54 |
| |
51 | 55 |
| |
| |||
57 | 61 |
| |
58 | 62 |
| |
59 | 63 |
| |
60 |
| - | |
61 |
| - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
62 | 70 |
| |
63 | 71 |
| |
64 | 72 |
| |
| |||
70 | 78 |
| |
71 | 79 |
| |
72 | 80 |
| |
73 |
| - | |
74 |
| - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
75 | 87 |
| |
76 | 88 |
| |
77 | 89 |
| |
| |||
83 | 95 |
| |
84 | 96 |
| |
85 | 97 |
| |
86 |
| - | |
87 |
| - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
88 | 104 |
| |
89 | 105 |
| |
90 | 106 |
| |
| |||
121 | 137 |
| |
122 | 138 |
| |
123 | 139 |
| |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
124 | 160 |
| |
| 161 | + | |
125 | 162 |
|
You can’t perform that action at this time.
0 commit comments