CARVIEW |
Select Language
HTTP/2 200
date: Fri, 25 Jul 2025 12:01:24 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/"ad7c5cded746a964645c348d7ab9d296"
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=txthMMahDbZXf64UgRKUM5rMflNz1dNf8LddZpxmJPj8szM8BErlsfC8FWkMnLbIIP%2FabWj%2BViHMKRLHpMRU920W%2BqvsxzLUUcn4GCxVYhAy04BtTdvvI0wOaa4gLKANh6x5wYpe%2BPmKwvPYYCij32wnTsO8IpWnlQZ5DuexMYXGlH9%2BobvL7rBbEieKq9l2VnXJVV%2BJSOGLps%2BwgVirPqd7JxySg6DFpf0p1HhEExhKUaVf7n7z7G3G8ht53DiAOBjUsYLVPHgLuDc%2FwnseJQ%3D%3D--DvGp8skI%2F6%2Bzv9WU--ClhJvxvpN9RG5DZwBWPbUQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1593782034.1753444883; Path=/; Domain=github.com; Expires=Sat, 25 Jul 2026 12:01:23 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sat, 25 Jul 2026 12:01:23 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: E168:10A5C2:8BE7F1:A41B01:68837213
【Hackathon 5th No.26】为 Paddle 新增 diagonal_scatter API -part (#57879) · PaddlePaddle/Paddle@98bb0b8 · GitHub
Copy file name to clipboardExpand all lines: paddle/phi/kernels/cpu/fill_diagonal_tensor_grad_kernel.cc
Copy file name to clipboardExpand all lines: paddle/phi/kernels/cpu/fill_diagonal_tensor_kernel.cc
Copy file name to clipboardExpand all lines: paddle/phi/kernels/gpu/fill_diagonal_tensor_grad_kernel.cu
Copy file name to clipboardExpand all lines: paddle/phi/kernels/gpu/fill_diagonal_tensor_kernel.cu
Copy file name to clipboardExpand all lines: python/paddle/tensor/__init__.py
Copy file name to clipboardExpand all lines: python/paddle/tensor/manipulation.py
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit 98bb0b8
【Hackathon 5th No.26】为 Paddle 新增 diagonal_scatter API -part (#57879)
* add diagonal_scatter
* add diagonal_scatter_test
* add annotations
* modify int32/int64 test range
* update diagonal_scatter doc
* fix: bfloat16 type & test name & LayerHelper position
* add diagonal scatter in __all__ list
* add int16 in fill_diagonal_tensor & reuse the logic of fill_diagonal_tensor for diagonal_scatter
* remove xpu settings
* op test get_numeric_gradient does not support int16
* fix
* Update python/paddle/tensor/manipulation.py
Co-authored-by: ooo oo <106524776+ooooo-create@users.noreply.github.com>
* Update python/paddle/tensor/manipulation.py
Co-authored-by: ooo oo <106524776+ooooo-create@users.noreply.github.com>
* fix review suggestions
* Update python/paddle/tensor/manipulation.py
Co-authored-by: ooo oo <106524776+ooooo-create@users.noreply.github.com>
* fix
---------
Co-authored-by: ooo oo <106524776+ooooo-create@users.noreply.github.com>1 parent 00e5f28 commit 98bb0b8Copy full SHA for 98bb0b8
File tree
Expand file treeCollapse file tree
8 files changed
+479
-1
lines changedFilter options
- paddle/phi/kernels
- cpu
- gpu
- python/paddle
- tensor
- test/legacy_test
Expand file treeCollapse file tree
8 files changed
+479
-1
lines changedpaddle/phi/kernels/cpu/fill_diagonal_tensor_grad_kernel.cc
Copy file name to clipboardExpand all lines: paddle/phi/kernels/cpu/fill_diagonal_tensor_grad_kernel.cc+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
76 | 76 |
| |
77 | 77 |
| |
78 | 78 |
| |
| 79 | + | |
79 | 80 |
| |
80 | 81 |
| |
81 | 82 |
| |
|
paddle/phi/kernels/cpu/fill_diagonal_tensor_kernel.cc
Copy file name to clipboardExpand all lines: paddle/phi/kernels/cpu/fill_diagonal_tensor_kernel.cc+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
140 | 140 |
| |
141 | 141 |
| |
142 | 142 |
| |
| 143 | + | |
143 | 144 |
| |
144 | 145 |
| |
145 | 146 |
| |
|
paddle/phi/kernels/gpu/fill_diagonal_tensor_grad_kernel.cu
Copy file name to clipboardExpand all lines: paddle/phi/kernels/gpu/fill_diagonal_tensor_grad_kernel.cu+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
102 | 102 |
| |
103 | 103 |
| |
104 | 104 |
| |
| 105 | + | |
105 | 106 |
| |
106 | 107 |
| |
107 | 108 |
| |
|
paddle/phi/kernels/gpu/fill_diagonal_tensor_kernel.cu
Copy file name to clipboardExpand all lines: paddle/phi/kernels/gpu/fill_diagonal_tensor_kernel.cu+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
124 | 124 |
| |
125 | 125 |
| |
126 | 126 |
| |
| 127 | + | |
127 | 128 |
| |
128 | 129 |
| |
129 | 130 |
| |
|
+2Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
260 | 260 |
| |
261 | 261 |
| |
262 | 262 |
| |
| 263 | + | |
263 | 264 |
| |
264 | 265 |
| |
265 | 266 |
| |
| |||
928 | 929 |
| |
929 | 930 |
| |
930 | 931 |
| |
| 932 | + | |
931 | 933 |
|
python/paddle/tensor/__init__.py
Copy file name to clipboardExpand all lines: python/paddle/tensor/__init__.py+2Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
173 | 173 |
| |
174 | 174 |
| |
175 | 175 |
| |
| 176 | + | |
176 | 177 |
| |
177 | 178 |
| |
178 | 179 |
| |
| |||
741 | 742 |
| |
742 | 743 |
| |
743 | 744 |
| |
| 745 | + | |
744 | 746 |
| |
745 | 747 |
| |
746 | 748 |
| |
|
python/paddle/tensor/manipulation.py
Copy file name to clipboardExpand all lines: python/paddle/tensor/manipulation.py+101-1Lines changed: 101 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1017 | 1017 |
| |
1018 | 1018 |
| |
1019 | 1019 |
| |
1020 |
| - | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
1021 | 1078 |
| |
1022 | 1079 |
| |
1023 | 1080 |
| |
| |||
5770 | 5827 |
| |
5771 | 5828 |
| |
5772 | 5829 |
| |
| 5830 | + | |
| 5831 | + | |
| 5832 | + | |
| 5833 | + | |
| 5834 | + | |
| 5835 | + | |
| 5836 | + | |
| 5837 | + | |
| 5838 | + | |
| 5839 | + | |
| 5840 | + | |
| 5841 | + | |
| 5842 | + | |
| 5843 | + | |
| 5844 | + | |
| 5845 | + | |
| 5846 | + | |
| 5847 | + | |
| 5848 | + | |
| 5849 | + | |
| 5850 | + | |
| 5851 | + | |
| 5852 | + | |
| 5853 | + | |
| 5854 | + | |
| 5855 | + | |
| 5856 | + | |
| 5857 | + | |
| 5858 | + | |
| 5859 | + | |
| 5860 | + | |
| 5861 | + | |
| 5862 | + | |
| 5863 | + | |
| 5864 | + | |
| 5865 | + | |
| 5866 | + | |
| 5867 | + | |
| 5868 | + | |
| 5869 | + | |
| 5870 | + | |
| 5871 | + | |
| 5872 | + |
You can’t perform that action at this time.
0 commit comments