CARVIEW |
Select Language
HTTP/2 200
date: Fri, 25 Jul 2025 09:55:43 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/"769be10dce373aae0b1dd44203315b2a"
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=MsLv%2BYwIZ%2F%2FuJynNEMz1E%2BKvqaGAksuvkMWFXY8hTVJ4k8bYD017Txppxo84svG47VKIvY6k6aF6uOe21pRGQAPE%2B%2BkxXfWY0nXt2kDzLjXzUTZdsRIurWZRyYt2MqeZAKXZNK0RvvxhZBAjGJ7OiBlgv8vxQm6wLi9ebOnby40DWYD9kcKAKnZh1dp8ztUEPbKMuDL6m8g0DGnOVXpMcymXTYxhHA5vRKvkVCDAoucXtZb8FC9MZhnfSlVKYv8VFk6Q5qEAYKLHwQ1lhuc66w%3D%3D--sPsZMI2HtsUeG6hj--MHp3ziQVpOEfWqLatDL1Fg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1966549968.1753437342; Path=/; Domain=github.com; Expires=Sat, 25 Jul 2026 09:55:42 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sat, 25 Jul 2026 09:55:42 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: CFAE:1256D3:6B0FF1:7F57CC:6883549E
Support control flow for static build [Step 3: support while] (#57616) · PaddlePaddle/Paddle@7fbc45d · GitHub
Copy file name to clipboardExpand all lines: paddle/fluid/framework/new_executor/interpreter/static_build.cc
Copy file name to clipboardExpand all lines: paddle/fluid/operators/controlflow/while_op.cc
Copy file name to clipboardExpand all lines: paddle/fluid/operators/controlflow/while_op_helper.cc
Copy file name to clipboardExpand all lines: paddle/fluid/operators/controlflow/while_op_helper.h
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit 7fbc45d
authored
Support control flow for static build [Step 3: support while] (#57616)
* add conditional_block to OperatorBasesHandledInStaticBuild
* run op in FakeInitializeOutputsForOperatorBase
* add init_success judge
* fix build error
* fix
* add SetSubBlockCore func
* add PreStaticRun func
* add PreStaticRun to interpreter_base and new_ir_inter
* recover codes
* add PreStaticBuild and BlockCanBeStaticBuilt
* fix logic about RunPreStaticBuild
* change CreateOpFromOpDesc type
* fix build error
* fix build error
* remove IsOperatorBasesHandledInStaticBuild
* recover BlockCanBeStaticBuilt
* add logic about conditional_block run static build
* recover codes
* recover BlockCanBeStaticBuilt
* support static build condational block op when condational block is the last op in the block
* fix error
* fix logic about last op
* fit for sub block can't open static build
* add IsStaticBuild
* fix build error
* fit logic when sub block can't open static build
* close static build when sub_block don't support static_build
* recover third party
* add is_skil_fake_init logic
* set the backend of the lamb
* change start index
* add if conditional for cal is_skip_fake_init
* change name
* close static_build for test_conditional_block
* add static buiild support for conditional block in case of the output's dtype/place is changed but the following op is not use this output
* fix logic error
* fix timeout error
* fix
* remove useless codes
* fix
* fix
* fix build error
* move GetVarsInfo and RunPreStaticBuild from opeartor to static_build
* fix lamb backend registe
* fix build error
* fix build error
* remove lamp op test from new_ir_op_test_white_list
* fix
* move generating following_input_vars logic to static_build.cc
* remove HasInfo
* fix build error
* recover codes and turn off the flag
* add support for while
* fix1 parent 8021461 commit 7fbc45dCopy full SHA for 7fbc45d
File tree
Expand file treeCollapse file tree
4 files changed
+247
-43
lines changedFilter options
- paddle/fluid
- framework/new_executor/interpreter
- operators/controlflow
Expand file treeCollapse file tree
4 files changed
+247
-43
lines changedpaddle/fluid/framework/new_executor/interpreter/static_build.cc
Copy file name to clipboardExpand all lines: paddle/fluid/framework/new_executor/interpreter/static_build.cc+207-9Lines changed: 207 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
| 21 | + | |
| 22 | + | |
21 | 23 |
| |
| 24 | + | |
22 | 25 |
| |
23 | 26 |
| |
24 | 27 |
| |
25 | 28 |
| |
26 | 29 |
| |
| 30 | + | |
| 31 | + | |
27 | 32 |
| |
28 |
| - | |
29 |
| - | |
| 33 | + | |
| 34 | + | |
30 | 35 |
| |
31 | 36 |
| |
32 | 37 |
| |
| |||
386 | 391 |
| |
387 | 392 |
| |
388 | 393 |
| |
389 |
| - | |
390 |
| - | |
391 |
| - | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
392 | 397 |
| |
393 | 398 |
| |
394 | 399 |
| |
| |||
434 | 439 |
| |
435 | 440 |
| |
436 | 441 |
| |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
437 | 629 |
| |
438 | 630 |
| |
439 | 631 |
| |
| |||
447 | 639 |
| |
448 | 640 |
| |
449 | 641 |
| |
450 |
| - | |
| 642 | + | |
451 | 643 |
| |
452 | 644 |
| |
453 | 645 |
| |
| |||
456 | 648 |
| |
457 | 649 |
| |
458 | 650 |
| |
459 |
| - | |
| 651 | + | |
460 | 652 |
| |
461 | 653 |
| |
462 | 654 |
| |
| |||
474 | 666 |
| |
475 | 667 |
| |
476 | 668 |
| |
477 |
| - | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
478 | 675 |
| |
479 | 676 |
| |
480 | 677 |
| |
| |||
487 | 684 |
| |
488 | 685 |
| |
489 | 686 |
| |
490 |
| - | |
| 687 | + | |
491 | 688 |
| |
492 | 689 |
| |
493 | 690 |
| |
| 691 | + | |
494 | 692 |
| |
495 | 693 |
| |
496 | 694 |
| |
|
paddle/fluid/operators/controlflow/while_op.cc
Copy file name to clipboardExpand all lines: paddle/fluid/operators/controlflow/while_op.cc-34Lines changed: 0 additions & 34 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
51 | 51 |
| |
52 | 52 |
| |
53 | 53 |
| |
54 |
| - | |
55 |
| - | |
56 |
| - | |
57 |
| - | |
58 |
| - | |
59 |
| - | |
60 |
| - | |
61 |
| - | |
62 |
| - | |
63 |
| - | |
64 |
| - | |
65 |
| - | |
66 |
| - | |
67 |
| - | |
68 |
| - | |
69 |
| - | |
70 |
| - | |
71 |
| - | |
72 |
| - | |
73 |
| - | |
74 |
| - | |
75 |
| - | |
76 |
| - | |
77 |
| - | |
78 |
| - | |
79 |
| - | |
80 |
| - | |
81 |
| - | |
82 |
| - | |
83 |
| - | |
84 |
| - | |
85 |
| - | |
86 |
| - | |
87 |
| - | |
88 | 54 |
| |
89 | 55 |
| |
90 | 56 |
| |
|
paddle/fluid/operators/controlflow/while_op_helper.cc
Copy file name to clipboardExpand all lines: paddle/fluid/operators/controlflow/while_op_helper.cc+34Lines changed: 34 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
250 | 250 |
| |
251 | 251 |
| |
252 | 252 |
| |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
253 | 287 |
| |
254 | 288 |
|
paddle/fluid/operators/controlflow/while_op_helper.h
Copy file name to clipboardExpand all lines: paddle/fluid/operators/controlflow/while_op_helper.h+6Lines changed: 6 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 |
| |
| |||
58 | 59 |
| |
59 | 60 |
| |
60 | 61 |
| |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
61 | 67 |
| |
62 | 68 |
|
You can’t perform that action at this time.
0 commit comments