CARVIEW |
Select Language
HTTP/2 200
date: Sat, 26 Jul 2025 23:33:01 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/"294330325bff25499962a30fc1a3c010"
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=drUVN5LuBxs7sOw0R6tIaKEjD%2BVAJfYXNe8tqMO3Mk%2BswkTCUBN2FV6nuvjTzGgzVL4m17uUMMcLmxe6VOLTE6hZNWUluxVxJ4gsj45zNkDXCN1z%2BQ4GmDr36IMmQGE5VzXNRbXfnYgxJEXy4Oci4aYN4RLcWHDVJPywBPKmYJNSa7FEBOOtvTUTfLEBDF1t5ai3qpp49MbxnBSITTbeK7Nu2h0T2idXSYXNwemy9dF0yuBgm4KApc7teLCmJpnOIylaDd3bZxZbnmoknLSaWw%3D%3D--GYtonhI1G6hhwxcW--ziIekH03TPQrF9QPW%2FFsLA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.21541734.1753572780; Path=/; Domain=github.com; Expires=Sun, 26 Jul 2026 23:33:00 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 26 Jul 2026 23:33:00 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: EBF0:1369AB:978317:C6BC67:688565AC
[CINN] Add Div to replace Recipical in DimExpr (#70376) · PaddlePaddle/Paddle@ee82f84 · GitHub


authored
Copy file name to clipboardExpand all lines: paddle/cinn/adt/dim_expr_match_trait.h
Copy file name to clipboardExpand all lines: paddle/cinn/common/broadcast_tree.cc
Copy file name to clipboardExpand all lines: paddle/cinn/common/dim_expr_converter.cc
Copy file name to clipboardExpand all lines: paddle/cinn/hlir/dialect/operator/ir/generate_shape_util.cc
Copy file name to clipboardExpand all lines: paddle/cinn/hlir/dialect/operator/transforms/check_infer_symbolic_util.cc
Copy file name to clipboardExpand all lines: paddle/cinn/hlir/dialect/operator/transforms/group_merge/convert_static_dim_to_dynamic_pass.cc
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit ee82f84
[CINN] Add Div to replace Recipical in DimExpr (#70376)
* add div shape op
* fix ut
* Refactor SimplifyDiv to streamline numerator and denominator handling
* fix
* Refactor Div structure and update related operations for improved clarity and functionality
* fix
* fix
* fix
* fix
* add BinaryExprMatchTrait
* fix broadcast_tree typo and fix bug of BinaryDimExprMatchTrait
* refine code
* optimize error message and delete FlattenOperands<Div>
* fix bug
* refine
* accuracy
* prevent infinite loops
* delete VisitEachOperandStruct<Div>
* refine code
* clean code
* Add Mul(S0,0) => 0 and check for divided by 0
* fix more cinn tests
* Code Reuse
* refine code
* revert parallel_run
* refine error message
---------
Co-authored-by: PuQing <me@puqing.work>
Co-authored-by: ooooo <3164076421@qq.com>1 parent fa16d0d commit ee82f84Copy full SHA for ee82f84
File tree
Expand file treeCollapse file tree
17 files changed
+607
-263
lines changedFilter options
- paddle
- cinn
- adt
- common
- hlir
- dialect/operator
- ir
- transforms
- group_merge
- lowering_pass
- pe
- pir
- include/dialect/shape/utils
- src/dialect/shape/utils
- test
- cpp/pir/shape_dialect
- ir/pir/cinn/symbolic
Expand file treeCollapse file tree
17 files changed
+607
-263
lines changedpaddle/cinn/adt/dim_expr_match_trait.h
Copy file name to clipboardExpand all lines: paddle/cinn/adt/dim_expr_match_trait.h+18-4Lines changed: 18 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
36 | 50 |
| |
37 | 51 |
| |
38 | 52 |
| |
| |||
65 | 79 |
| |
66 | 80 |
| |
67 | 81 |
| |
68 |
| - | |
69 |
| - | |
70 |
| - | |
71 |
| - | |
72 | 82 |
| |
73 | 83 |
| |
74 | 84 |
| |
| |||
77 | 87 |
| |
78 | 88 |
| |
79 | 89 |
| |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
80 | 94 |
| |
81 | 95 |
| |
82 | 96 |
| |
|
paddle/cinn/common/broadcast_tree.cc
Copy file name to clipboardExpand all lines: paddle/cinn/common/broadcast_tree.cc+14-5Lines changed: 14 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
46 |
| - | |
47 |
| - | |
48 |
| - | |
49 |
| - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
50 | 53 |
| |
51 | 54 |
| |
52 | 55 |
| |
53 |
| - | |
| 56 | + | |
54 | 57 |
| |
55 | 58 |
| |
56 | 59 |
| |
| |||
76 | 79 |
| |
77 | 80 |
| |
78 | 81 |
| |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
79 | 88 |
| |
80 | 89 |
| |
81 | 90 |
| |
|
paddle/cinn/common/dim_expr_converter.cc
Copy file name to clipboardExpand all lines: paddle/cinn/common/dim_expr_converter.cc+7-16Lines changed: 7 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
45 | 45 |
| |
46 | 46 |
| |
47 | 47 |
| |
48 |
| - | |
49 |
| - | |
50 |
| - | |
51 |
| - | |
52 |
| - | |
53 | 48 |
| |
54 | 49 |
| |
55 | 50 |
| |
| |||
69 | 64 |
| |
70 | 65 |
| |
71 | 66 |
| |
72 |
| - | |
73 |
| - | |
74 |
| - | |
75 |
| - | |
76 |
| - | |
77 |
| - | |
78 |
| - | |
79 |
| - | |
80 |
| - | |
81 |
| - | |
82 |
| - | |
| 67 | + | |
83 | 68 |
| |
84 | 69 |
| |
85 | 70 |
| |
86 | 71 |
| |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
87 | 78 |
| |
88 | 79 |
| |
89 | 80 |
| |
|
paddle/cinn/hlir/dialect/operator/ir/generate_shape_util.cc
Copy file name to clipboardExpand all lines: paddle/cinn/hlir/dialect/operator/ir/generate_shape_util.cc+72-19Lines changed: 72 additions & 19 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
33 |
| - | |
34 |
| - | |
35 |
| - | |
36 |
| - | |
37 |
| - | |
38 | 33 |
| |
39 | 34 |
| |
40 | 35 |
| |
| |||
45 | 40 |
| |
46 | 41 |
| |
47 | 42 |
| |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
| |||
80 | 80 |
| |
81 | 81 |
| |
82 | 82 |
| |
83 |
| - | |
84 |
| - | |
85 |
| - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
86 | 93 |
| |
87 | 94 |
| |
88 | 95 |
| |
89 |
| - | |
| 96 | + | |
90 | 97 |
| |
91 | 98 |
| |
92 | 99 |
| |
| |||
112 | 119 |
| |
113 | 120 |
| |
114 | 121 |
| |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
115 | 127 |
| |
116 | 128 |
| |
117 | 129 |
| |
| |||
150 | 162 |
| |
151 | 163 |
| |
152 | 164 |
| |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
153 | 182 |
| |
154 | 183 |
| |
155 | 184 |
| |
| |||
175 | 204 |
| |
176 | 205 |
| |
177 | 206 |
| |
178 |
| - | |
179 |
| - | |
180 | 207 |
| |
181 | 208 |
| |
182 | 209 |
| |
183 | 210 |
| |
| 211 | + | |
| 212 | + | |
184 | 213 |
| |
185 | 214 |
| |
186 | 215 |
| |
| |||
276 | 305 |
| |
277 | 306 |
| |
278 | 307 |
| |
279 |
| - | |
280 |
| - | |
281 |
| - | |
282 | 308 |
| |
283 | 309 |
| |
284 | 310 |
| |
| |||
298 | 324 |
| |
299 | 325 |
| |
300 | 326 |
| |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
301 | 346 |
| |
302 | 347 |
| |
303 | 348 |
| |
| |||
412 | 457 |
| |
413 | 458 |
| |
414 | 459 |
| |
415 |
| - | |
416 |
| - | |
417 | 460 |
| |
418 | 461 |
| |
419 | 462 |
| |
420 | 463 |
| |
| 464 | + | |
| 465 | + | |
421 | 466 |
| |
422 | 467 |
| |
423 | 468 |
| |
| |||
484 | 529 |
| |
485 | 530 |
| |
486 | 531 |
| |
487 |
| - | |
488 |
| - | |
489 |
| - | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
490 | 538 |
| |
491 | 539 |
| |
492 | 540 |
| |
| |||
508 | 556 |
| |
509 | 557 |
| |
510 | 558 |
| |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
511 | 564 |
| |
512 | 565 |
| |
513 | 566 |
| |
|
paddle/cinn/hlir/dialect/operator/transforms/check_infer_symbolic_util.cc
Copy file name to clipboardExpand all lines: paddle/cinn/hlir/dialect/operator/transforms/check_infer_symbolic_util.cc+4-3Lines changed: 4 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
138 | 138 |
| |
139 | 139 |
| |
140 | 140 |
| |
141 |
| - | |
142 |
| - | |
143 |
| - | |
144 | 141 |
| |
145 | 142 |
| |
146 | 143 |
| |
| |||
151 | 148 |
| |
152 | 149 |
| |
153 | 150 |
| |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
154 | 155 |
| |
155 | 156 |
| |
156 | 157 |
| |
|
paddle/cinn/hlir/dialect/operator/transforms/group_merge/convert_static_dim_to_dynamic_pass.cc
Copy file name to clipboardExpand all lines: paddle/cinn/hlir/dialect/operator/transforms/group_merge/convert_static_dim_to_dynamic_pass.cc+32-7Lines changed: 32 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
198 | 198 |
| |
199 | 199 |
| |
200 | 200 |
| |
201 |
| - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
202 | 209 |
| |
203 |
| - | |
| 210 | + | |
204 | 211 |
| |
205 | 212 |
| |
206 | 213 |
| |
| |||
272 | 279 |
| |
273 | 280 |
| |
274 | 281 |
| |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
275 | 300 |
| |
276 | 301 |
| |
277 | 302 |
| |
| |||
297 | 322 |
| |
298 | 323 |
| |
299 | 324 |
| |
300 |
| - | |
| 325 | + | |
301 | 326 |
| |
302 | 327 |
| |
303 |
| - | |
| 328 | + | |
304 | 329 |
| |
305 | 330 |
| |
306 | 331 |
| |
307 |
| - | |
| 332 | + | |
308 | 333 |
| |
309 | 334 |
| |
310 | 335 |
| |
311 | 336 |
| |
312 | 337 |
| |
313 | 338 |
| |
314 |
| - | |
| 339 | + | |
315 | 340 |
| |
316 | 341 |
| |
317 |
| - | |
| 342 | + | |
318 | 343 |
| |
319 | 344 |
| |
320 | 345 |
| |
|
You can’t perform that action at this time.
0 commit comments