CARVIEW |
Select Language
HTTP/2 200
date: Thu, 24 Jul 2025 05:20:49 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/"d56929ae74d9e9522073595775e15483"
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=Fk19GMI75lE%2B8Kk%2BCMFzzLyOGcf0jnd%2BhlgIdY%2Bw5q%2BWJrN5jyT5zfGyLXf0xdD6OXzKjxCFXiCMhgRUBiAe%2FkpJUD%2BHfOGvRNKrNUlg%2FHvUHtQQEKNAiKf9ZFmWv8kcZ6L9QOJjLJvIckMjHyb7nz5AddUnXILH9W9EYDQCRBUrcdmlHPXjhodiwpUSaO5svjBJxgzw%2BYgG%2BU1lcS6fWzrvnO9rwpWthyqCE5nO3TNI4bUiR21t%2B4a51ykAGtiVz58gxIsYTN9fwKbyBt%2Bkfg%3D%3D--RubmdW4WfaxkSYUx--qIKr2VD2rJVAgMkmqWaT5g%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.166559933.1753334448; Path=/; Domain=github.com; Expires=Fri, 24 Jul 2026 05:20:48 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Fri, 24 Jul 2026 05:20:48 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 89DE:33F941:173BB2:1C1359:6881C2B0
Support Combined indexing for __getitem__ and __setitem__ (#55211) · PaddlePaddle/Paddle@697c712 · GitHub
Copy file name to clipboardExpand all lines: paddle/fluid/pybind/eager_method.cc
Copy file name to clipboardExpand all lines: python/paddle/fluid/dygraph/tensor_patch_methods.py
Copy file name to clipboardExpand all lines: python/paddle/fluid/framework.py
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit 697c712
authored
Support Combined indexing for __getitem__ and __setitem__ (#55211)
* WIP: start writing combined indexing get
* list/tuple/Variable
* getitem 80%
* add setitem
* add some unittest for setitem
* lazy import
* fix some setitem error
* fix advance indexing with decreasing axes; fix strided_slice input name
* combine int-tensor getitem is ok (without boolean support & broadcast); add getitem unittest for static
* add broadcast & parse bool tensor for __getitem
* [change getitem] _getitem_impl_ to _getitem_static, not deleting the former one
* refine new getitem; fix ut in variable/var_base
* add __getitem__ ut in dygraph
* re-dispatch getitem for Py/CPP; fix strided_slice decrease axes error in dygraph
* fix ut; support tensor in slice
* [change setitem] _setitem_impl_ to _setitem_static, not deleting the former one
* remove some UT (for some, temporarily)
* add IndexError to solve timeout problem in static-mode
* 1.temply forbideen all-False bool-indexput; 2.setitem_static will return new variable
* xpu uses old stratege
* rename dy2st setitem ut to avoid same-name problem
* dy2st for new combined index
* ut case for combine-index with dy2st
* open ut with all-false-bool setitem
* remove useless doc and _getitem_impl_
* change static res
* fix static xpu1 parent 8151146 commit 697c712Copy full SHA for 697c712
File tree
Expand file treeCollapse file tree
14 files changed
+1082
-333
lines changedFilter options
- paddle/fluid/pybind
- python/paddle
- fluid
- dygraph
- static
- test
- dygraph_to_static
- indexing
- legacy_test
Expand file treeCollapse file tree
14 files changed
+1082
-333
lines changedpaddle/fluid/pybind/eager_method.cc
Copy file name to clipboardExpand all lines: paddle/fluid/pybind/eager_method.cc+3Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1120 | 1120 |
| |
1121 | 1121 |
| |
1122 | 1122 |
| |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
1123 | 1126 |
| |
1124 | 1127 |
| |
1125 | 1128 |
| |
|
python/paddle/fluid/dygraph/tensor_patch_methods.py
Copy file name to clipboardExpand all lines: python/paddle/fluid/dygraph/tensor_patch_methods.py+25-34Lines changed: 25 additions & 34 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
29 |
| - | |
| 29 | + | |
| 30 | + | |
30 | 31 |
| |
31 | 32 |
| |
32 | 33 |
| |
| |||
726 | 727 |
| |
727 | 728 |
| |
728 | 729 |
| |
729 |
| - | |
730 |
| - | |
731 |
| - | |
732 |
| - | |
733 |
| - | |
734 |
| - | |
735 |
| - | |
736 |
| - | |
737 |
| - | |
738 |
| - | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
739 | 736 |
| |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
740 | 744 |
| |
741 |
| - | |
742 |
| - | |
743 |
| - | |
744 |
| - | |
745 |
| - | |
746 |
| - | |
| 745 | + | |
747 | 746 |
| |
748 |
| - | |
| 747 | + | |
| 748 | + | |
749 | 749 |
| |
750 | 750 |
| |
751 |
| - | |
| 751 | + | |
752 | 752 |
| |
753 | 753 |
| |
754 | 754 |
| |
755 | 755 |
| |
756 | 756 |
| |
757 | 757 |
| |
758 |
| - | |
759 |
| - | |
760 |
| - | |
761 |
| - | |
762 |
| - | |
763 |
| - | |
764 |
| - | |
765 |
| - | |
766 |
| - | |
767 |
| - | |
768 |
| - | |
769 |
| - | |
770 | 758 |
| |
771 | 759 |
| |
772 | 760 |
| |
| |||
788 | 776 |
| |
789 | 777 |
| |
790 | 778 |
| |
791 |
| - | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
792 | 783 |
| |
793 |
| - | |
794 |
| - | |
| 784 | + | |
| 785 | + | |
795 | 786 |
| |
796 | 787 |
| |
797 | 788 |
| |
|
python/paddle/fluid/framework.py
Copy file name to clipboardExpand all lines: python/paddle/fluid/framework.py+6-3Lines changed: 6 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
40 |
| - | |
| 40 | + | |
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
| |||
2294 | 2294 |
| |
2295 | 2295 |
| |
2296 | 2296 |
| |
2297 |
| - | |
| 2297 | + | |
2298 | 2298 |
| |
2299 | 2299 |
| |
2300 | 2300 |
| |
2301 | 2301 |
| |
2302 | 2302 |
| |
2303 |
| - | |
| 2303 | + | |
| 2304 | + | |
| 2305 | + | |
| 2306 | + | |
2304 | 2307 |
| |
2305 | 2308 |
| |
2306 | 2309 |
| |
|
You can’t perform that action at this time.
0 commit comments