CARVIEW |
Select Language
HTTP/2 200
date: Thu, 24 Jul 2025 06:09:40 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/"28e4b4f1e977e5574b220a59302b9801"
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=4kBIlaUaqR1k2n2KyVDNRTWCyWKAmyaWtkSkNPVJmm0rYJAPcHCGTcevoGUR77qHEF0K4X%2FYEWIoj02kCoJERh2W%2BSMaXyydZGBQlyCMGZpKVFr8c%2Fh8CqzQqKytX68nMQ2Nh45pgWVzNfx0RhhrfvkMl6z2EhH%2B7vb0ihx%2BpSfrqGJCs489qrrEdMomG65X7LeLgNcVeWbcoAeYTXXdLK3nKtr2RBl%2BcxOMyHx3mWBbLuU4CpId7kXthe808WtOKSOHeaLG5S6o9c5U3AHjWA%3D%3D--o5M9Wm2QN3dvJSqg--DzFb%2F0%2B2HQsMMHX1CLyvuQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.374895735.1753337380; Path=/; Domain=github.com; Expires=Fri, 24 Jul 2026 06:09:40 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Fri, 24 Jul 2026 06:09:40 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: BC90:16C9C5:BD737:D3E84:6881CE24
Auto codegen for supporting calling new_ir api in static operants (#5… · PaddlePaddle/Paddle@3eafa1f · GitHub


authored
Copy file name to clipboardExpand all lines: paddle/fluid/prim/api/auto_code_generated/tensor_operants_gen.py
Copy file name to clipboardExpand all lines: paddle/fluid/prim/utils/static/CMakeLists.txt
Copy file name to clipboardExpand all lines: paddle/fluid/primitive/codegen/templates/rule/vjp/generated/generated_vjp.cc.j2
Copy file name to clipboardExpand all lines: paddle/fluid/primitive/rule/vjp/details.h
Copy file name to clipboardExpand all lines: paddle/phi/core/extended_tensor.cc
Copy file name to clipboardExpand all lines: test/prim/new_ir_prim/test_vjp_prim.py
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit 3eafa1f

Auto codegen for supporting calling new_ir api in static operants (#56955)
* support new ir primitive operator in static operants
* support more vjp code gen
* support more vjp code gen
* support more vjp code gen
* use code gen
* fix operants codegen
* support more vjp code gen
* Fix ci build error
* set FLAGS_tensor_operants_mode to static in generated_vjp for testing
* fix bugs
* change the order of ops_name of divide_grad
* replace FLAGS_enable_new_ir_in_executor by FLAGS_enable_new_ir_api in codegen and test_vjp_prim
---------
Co-authored-by: Charles-hit <wanghao107@baidu.com>
Co-authored-by: 0x45f <wangzhen45@baidu.com>1 parent c62902e commit 3eafa1fCopy full SHA for 3eafa1f
File tree
Expand file treeCollapse file tree
6 files changed
+80
-22
lines changedFilter options
- paddle
- fluid
- primitive
- codegen/templates/rule/vjp/generated
- rule/vjp
- prim
- api/auto_code_generated
- utils/static
- phi/core
- test/prim/new_ir_prim
Expand file treeCollapse file tree
6 files changed
+80
-22
lines changedpaddle/fluid/prim/api/auto_code_generated/tensor_operants_gen.py
Copy file name to clipboardExpand all lines: paddle/fluid/prim/api/auto_code_generated/tensor_operants_gen.py+68-14Lines changed: 68 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
211 | 211 |
| |
212 | 212 |
| |
213 | 213 |
| |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
214 | 219 |
| |
215 | 220 |
| |
216 | 221 |
| |
| |||
219 | 224 |
| |
220 | 225 |
| |
221 | 226 |
| |
| 227 | + | |
222 | 228 |
| |
223 | 229 |
| |
224 |
| - | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
225 | 235 |
| |
226 | 236 |
| |
227 | 237 |
| |
228 |
| - | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
229 | 243 |
| |
230 | 244 |
| |
231 | 245 |
| |
232 |
| - | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
233 | 251 |
| |
234 | 252 |
| |
235 | 253 |
| |
236 |
| - | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
237 | 259 |
| |
238 | 260 |
| |
239 | 261 |
| |
240 |
| - | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
241 | 267 |
| |
242 | 268 |
| |
| 269 | + | |
243 | 270 |
| |
244 |
| - | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
245 | 276 |
| |
246 | 277 |
| |
247 | 278 |
| |
248 |
| - | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
249 | 284 |
| |
250 | 285 |
| |
251 | 286 |
| |
252 |
| - | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
253 | 292 |
| |
254 | 293 |
| |
255 | 294 |
| |
256 |
| - | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
257 | 300 |
| |
258 | 301 |
| |
259 | 302 |
| |
260 |
| - | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
261 | 308 |
| |
262 |
| - | |
263 | 309 |
| |
264 | 310 |
| |
265 | 311 |
| |
| |||
339 | 385 |
| |
340 | 386 |
| |
341 | 387 |
| |
342 |
| - | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
343 | 391 |
| |
344 | 392 |
| |
345 | 393 |
| |
346 |
| - | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
347 | 401 |
| |
348 |
| - | |
| 402 | + | |
349 | 403 |
| |
350 | 404 |
| |
351 | 405 |
| |
|
paddle/fluid/prim/utils/static/CMakeLists.txt
Copy file name to clipboardExpand all lines: paddle/fluid/prim/utils/static/CMakeLists.txt+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
| 9 | + |
paddle/fluid/primitive/codegen/templates/rule/vjp/generated/generated_vjp.cc.j2
Copy file name to clipboardExpand all lines: paddle/fluid/primitive/codegen/templates/rule/vjp/generated/generated_vjp.cc.j2+3Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| 13 | + | |
13 | 14 |
| |
| 15 | + | |
14 | 16 |
| |
15 | 17 |
| |
16 | 18 |
| |
| |||
95 | 97 |
| |
96 | 98 |
| |
97 | 99 |
| |
| 100 | + | |
98 | 101 |
| |
99 | 102 |
| |
100 | 103 |
| |
|
paddle/fluid/primitive/rule/vjp/details.h
Copy file name to clipboardExpand all lines: paddle/fluid/primitive/rule/vjp/details.h+2-5Lines changed: 2 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
42 |
| - | |
43 |
| - | |
44 |
| - | |
45 |
| - | |
| 42 | + | |
46 | 43 |
| |
47 | 44 |
| |
48 | 45 |
| |
| |||
61 | 58 |
| |
62 | 59 |
| |
63 | 60 |
| |
64 |
| - | |
| 61 | + | |
65 | 62 |
| |
66 | 63 |
| |
67 | 64 |
| |
|
paddle/phi/core/extended_tensor.cc
Copy file name to clipboardExpand all lines: paddle/phi/core/extended_tensor.cc+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
41 |
| - | |
| 41 | + | |
42 | 42 |
| |
43 | 43 |
| |
44 | 44 |
| |
|
test/prim/new_ir_prim/test_vjp_prim.py
Copy file name to clipboardExpand all lines: test/prim/new_ir_prim/test_vjp_prim.py+5-1Lines changed: 5 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
63 | 63 |
| |
64 | 64 |
| |
65 | 65 |
| |
| 66 | + | |
66 | 67 |
| |
67 | 68 |
| |
68 | 69 |
| |
| |||
83 | 84 |
| |
84 | 85 |
| |
85 | 86 |
| |
86 |
| - | |
87 | 87 |
| |
88 | 88 |
| |
| 89 | + | |
89 | 90 |
| |
90 | 91 |
| |
91 | 92 |
| |
| |||
101 | 102 |
| |
102 | 103 |
| |
103 | 104 |
| |
| 105 | + | |
104 | 106 |
| |
105 | 107 |
| |
106 | 108 |
| |
| |||
123 | 125 |
| |
124 | 126 |
| |
125 | 127 |
| |
| 128 | + | |
126 | 129 |
| |
127 | 130 |
| |
128 | 131 |
| |
| |||
147 | 150 |
| |
148 | 151 |
| |
149 | 152 |
| |
| 153 | + | |
150 | 154 |
| |
151 | 155 |
| |
152 | 156 |
| |
|
You can’t perform that action at this time.
0 commit comments