CARVIEW |
Select Language
HTTP/2 200
date: Fri, 25 Jul 2025 02:25:06 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/"2393160eec5240eb6466dd3352497714"
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=hzLeuimfwm0tfFHPWiF%2Bq05c4pTu0CxkKed64crI3jgy0EM3TvsmEUPGecNp0oTKocoYtFzuNiG94EHcSjll47XDGFw7O1R2gQWKdps2qRm1%2BQgRoLeie7AqThj0HUrQqopBA2ASLVFjXsIkNFHDcK22hs%2FKvdL6cFN8SdKeRtdDUfMQeTwRMMnO1FP0i19dA3Xxr%2BhTVv7irqZricDfAUGQjr7YRxYVKn1ODUKmgU1u6pVLmAfZK4dbT3hSvkWRqFWejisW3oNCr7%2BinbqDcg%3D%3D--TW1%2B2ToDNdUGiZCo--obzqJsvJDMQQD%2FsHVeMLdg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1810504368.1753410305; Path=/; Domain=github.com; Expires=Sat, 25 Jul 2026 02:25:05 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sat, 25 Jul 2026 02:25:05 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 975E:15F96:BB688:11D8B9:6882EB01
add backward decomp for logsumexp and trunc (#68485) · PaddlePaddle/Paddle@b4baafa · GitHub
Copy file name to clipboardExpand all lines: paddle/fluid/primitive/codegen/gen.py
Copy file name to clipboardExpand all lines: paddle/fluid/primitive/rule/vjp/details.h
Copy file name to clipboardExpand all lines: python/paddle/autograd/backward_utils.py
Copy file name to clipboardExpand all lines: test/legacy_test/test_logsumexp.py
Copy file name to clipboardExpand all lines: test/legacy_test/test_trunc_op.py
Copy file name to clipboardExpand all lines: test/prim/pir_prim/test_prim_sub_graph_klmno_backward_dynamic_shape.py
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit b4baafa
authored
add backward decomp for logsumexp and trunc (#68485)
* add backward decomp for logsumexp and trunc
* modified logsumexp_grad
* modified some files
* add prim_op_type and public_python_api for TestLogsumexpBF16Op()
* support dynamic shape for logsumexp_grad
* support dynamic shape for trunc_grad & modify TestLogsumexp_FP161 parent be626a7 commit b4baafaCopy full SHA for b4baafa
File tree
Expand file treeCollapse file tree
7 files changed
+253
-22
lines changedFilter options
- paddle/fluid/primitive
- codegen
- rule/vjp
- python/paddle/autograd
- test
- legacy_test
- prim/pir_prim
Expand file treeCollapse file tree
7 files changed
+253
-22
lines changedpaddle/fluid/primitive/codegen/gen.py
Copy file name to clipboardExpand all lines: paddle/fluid/primitive/codegen/gen.py+2Lines changed: 2 additions & 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 |
| |
| |||
126 | 127 |
| |
127 | 128 |
| |
128 | 129 |
| |
| 130 | + | |
129 | 131 |
| |
130 | 132 |
| |
131 | 133 |
| |
|
paddle/fluid/primitive/rule/vjp/details.h
Copy file name to clipboardExpand all lines: paddle/fluid/primitive/rule/vjp/details.h+100Lines changed: 100 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2884 | 2884 |
| |
2885 | 2885 |
| |
2886 | 2886 |
| |
| 2887 | + | |
| 2888 | + | |
| 2889 | + | |
| 2890 | + | |
| 2891 | + | |
| 2892 | + | |
| 2893 | + | |
| 2894 | + | |
| 2895 | + | |
| 2896 | + | |
| 2897 | + | |
| 2898 | + | |
| 2899 | + | |
| 2900 | + | |
| 2901 | + | |
| 2902 | + | |
| 2903 | + | |
| 2904 | + | |
| 2905 | + | |
| 2906 | + | |
| 2907 | + | |
| 2908 | + | |
| 2909 | + | |
| 2910 | + | |
| 2911 | + | |
| 2912 | + | |
| 2913 | + | |
| 2914 | + | |
| 2915 | + | |
| 2916 | + | |
| 2917 | + | |
| 2918 | + | |
| 2919 | + | |
| 2920 | + | |
| 2921 | + | |
| 2922 | + | |
| 2923 | + | |
| 2924 | + | |
| 2925 | + | |
| 2926 | + | |
| 2927 | + | |
| 2928 | + | |
| 2929 | + | |
| 2930 | + | |
| 2931 | + | |
| 2932 | + | |
| 2933 | + | |
| 2934 | + | |
| 2935 | + | |
| 2936 | + | |
| 2937 | + | |
| 2938 | + | |
| 2939 | + | |
| 2940 | + | |
| 2941 | + | |
| 2942 | + | |
| 2943 | + | |
| 2944 | + | |
| 2945 | + | |
| 2946 | + | |
| 2947 | + | |
| 2948 | + | |
| 2949 | + | |
| 2950 | + | |
| 2951 | + | |
| 2952 | + | |
| 2953 | + | |
| 2954 | + | |
| 2955 | + | |
| 2956 | + | |
| 2957 | + | |
| 2958 | + | |
| 2959 | + | |
| 2960 | + | |
| 2961 | + | |
| 2962 | + | |
| 2963 | + | |
| 2964 | + | |
| 2965 | + | |
| 2966 | + | |
| 2967 | + | |
| 2968 | + | |
| 2969 | + | |
| 2970 | + | |
| 2971 | + | |
| 2972 | + | |
| 2973 | + | |
| 2974 | + | |
| 2975 | + | |
| 2976 | + | |
| 2977 | + | |
| 2978 | + | |
| 2979 | + | |
| 2980 | + | |
| 2981 | + | |
| 2982 | + | |
| 2983 | + | |
| 2984 | + | |
| 2985 | + | |
| 2986 | + | |
2887 | 2987 |
| |
2888 | 2988 |
| |
2889 | 2989 |
|
python/paddle/autograd/backward_utils.py
Copy file name to clipboardExpand all lines: python/paddle/autograd/backward_utils.py+3-1Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
55 | 55 |
| |
56 | 56 |
| |
57 | 57 |
| |
| 58 | + | |
58 | 59 |
| |
59 | 60 |
| |
60 | 61 |
| |
| |||
88 | 89 |
| |
89 | 90 |
| |
90 | 91 |
| |
91 |
| - | |
92 | 92 |
| |
| 93 | + | |
| 94 | + | |
93 | 95 |
| |
94 | 96 |
| |
95 | 97 |
| |
|
test/legacy_test/test_logsumexp.py
Copy file name to clipboardExpand all lines: test/legacy_test/test_logsumexp.py+37-19Lines changed: 37 additions & 19 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
57 | 57 |
| |
58 | 58 |
| |
59 | 59 |
| |
| 60 | + | |
60 | 61 |
| |
| 62 | + | |
61 | 63 |
| |
62 | 64 |
| |
63 | 65 |
| |
| |||
87 | 89 |
| |
88 | 90 |
| |
89 | 91 |
| |
90 |
| - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
91 | 96 |
| |
92 | 97 |
| |
93 | 98 |
| |
| |||
96 | 101 |
| |
97 | 102 |
| |
98 | 103 |
| |
| 104 | + | |
99 | 105 |
| |
100 | 106 |
| |
101 | 107 |
| |
| |||
165 | 171 |
| |
166 | 172 |
| |
167 | 173 |
| |
168 |
| - | |
169 |
| - | |
170 |
| - | |
171 |
| - | |
172 |
| - | |
173 |
| - | |
174 |
| - | |
175 |
| - | |
176 |
| - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
177 | 179 |
| |
178 | 180 |
| |
179 | 181 |
| |
180 |
| - | |
181 |
| - | |
182 |
| - | |
183 |
| - | |
184 |
| - | |
185 |
| - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
186 | 193 |
| |
187 | 194 |
| |
188 | 195 |
| |
| |||
193 | 200 |
| |
194 | 201 |
| |
195 | 202 |
| |
| 203 | + | |
196 | 204 |
| |
| 205 | + | |
197 | 206 |
| |
198 | 207 |
| |
199 | 208 |
| |
| |||
213 | 222 |
| |
214 | 223 |
| |
215 | 224 |
| |
216 |
| - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
217 | 230 |
| |
218 | 231 |
| |
219 | 232 |
| |
220 |
| - | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
221 | 240 |
| |
222 | 241 |
| |
223 | 242 |
| |
| |||
227 | 246 |
| |
228 | 247 |
| |
229 | 248 |
| |
230 |
| - | |
231 | 249 |
| |
232 | 250 |
| |
233 | 251 |
| |
|
test/legacy_test/test_trunc_op.py
Copy file name to clipboardExpand all lines: test/legacy_test/test_trunc_op.py+13-2Lines changed: 13 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
| 29 | + | |
29 | 30 |
| |
| 31 | + | |
30 | 32 |
| |
31 | 33 |
| |
32 | 34 |
| |
| |||
36 | 38 |
| |
37 | 39 |
| |
38 | 40 |
| |
39 |
| - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
40 | 45 |
| |
41 | 46 |
| |
42 |
| - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
43 | 54 |
| |
44 | 55 |
| |
45 | 56 |
| |
|
test/prim/pir_prim/test_prim_sub_graph_klmno_backward_dynamic_shape.py
Copy file name to clipboardExpand all lines: test/prim/pir_prim/test_prim_sub_graph_klmno_backward_dynamic_shape.py+81Lines changed: 81 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
42 | 58 |
| |
43 | 59 |
| |
44 | 60 |
| |
| |||
143 | 159 |
| |
144 | 160 |
| |
145 | 161 |
| |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
146 | 227 |
| |
147 | 228 |
| |
148 | 229 |
| |
|
You can’t perform that action at this time.
0 commit comments