CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 09:26: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/"4b808f958f1008fee7860a893bca78e8"
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=Crxnfx9rAPtVPb98O353iIbfy1gCMem6RJ5poVYupjegEP%2FLHWESpjJNvhwp7MElYhrY0YLk0VB6RYWcN0tZM7XN4lCr7T4oZsfty4h7jtaIz1INC3mdBKZz652kZaMGyd22bOs95HhPf5iAK6WOYeuLAIsKmIjznQRbfVPx7bnqPKb8DbbAChVgOAOeeFCzHlxIaFfvb6%2BO3warySKeu5DM8hjjh7UXLi3dNGB5JZjI%2FbdldKgbM0LSjA5ewESRgpeRULMx8MfsGKUuMWWCvw%3D%3D--WYrgmens3YsrtsKt--gvCQYeT4W79otJ6dFAYE3w%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.806440990.1753608365; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 09:26:05 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 09:26:05 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: DAFC:2CB2E7:CC095C:10E1E8D:6885F0AD
Support 0-size tensor in parameter creating, forward and backward (#7… · PaddlePaddle/Paddle@0452626 · GitHub
Copy file name to clipboardExpand all lines: paddle/fluid/eager/accumulation/accumulation_node.cc
Copy file name to clipboardExpand all lines: paddle/fluid/eager/auto_code_generator/generator/eager_gen.py
Copy file name to clipboardExpand all lines: paddle/fluid/eager/backward.cc
Copy file name to clipboardExpand all lines: paddle/fluid/eager/custom_operator/custom_operator_utils.cc
Copy file name to clipboardExpand all lines: paddle/fluid/eager/grad_node_info.cc
Copy file name to clipboardExpand all lines: paddle/fluid/eager/grad_tensor_holder.cc
Copy file name to clipboardExpand all lines: paddle/fluid/eager/tensor_wrapper.h
Copy file name to clipboardExpand all lines: paddle/fluid/eager/utils.cc
Copy file name to clipboardExpand all lines: paddle/fluid/framework/tensor_util.cc
Copy file name to clipboardExpand all lines: paddle/fluid/imperative/gradient_accumulator.cc
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit 0452626
Support 0-size tensor in parameter creating, forward and backward (#70504)
* support 0-size tensor forward and backward under simple operations preliminarily
* fix error message format
* support initializing for 0-size tensor
* add TestZeroSizeParameter
* update forward, backward with 0-size tensor in eager/static mode
* TestZeroSizeBackward skip XPU for place issue
* [PIR] Insert backward ops into insertion point
* fix 2 ut
* fix add_n infermeta when meeting 0-size and update UT
* remove warnings
* remove print
* remove unnecessary code
* remove condition of define() for paddle::Tensor
* fix
---------
Co-authored-by: SigureMo <sigure.qaq@gmail.com>1 parent bda9e1f commit 0452626Copy full SHA for 0452626
File tree
Expand file treeCollapse file tree
25 files changed
+679
-80
lines changedFilter options
- paddle
- fluid
- eager
- accumulation
- auto_code_generator/generator
- custom_operator
- framework
- imperative
- pybind
- phi
- api/lib
- infermeta
- kernels
- gpu
- impl
- utils
- python/paddle/nn/initializer
- test/legacy_test
Expand file treeCollapse file tree
25 files changed
+679
-80
lines changedpaddle/fluid/eager/accumulation/accumulation_node.cc
Copy file name to clipboardExpand all lines: paddle/fluid/eager/accumulation/accumulation_node.cc+6-2Lines changed: 6 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
65 | 65 |
| |
66 | 66 |
| |
67 | 67 |
| |
68 |
| - | |
| 68 | + | |
69 | 69 |
| |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
70 | 74 |
| |
71 | 75 |
| |
72 | 76 |
| |
| |||
179 | 183 |
| |
180 | 184 |
| |
181 | 185 |
| |
182 |
| - | |
| 186 | + | |
183 | 187 |
| |
184 | 188 |
| |
185 | 189 |
| |
|
paddle/fluid/eager/auto_code_generator/generator/eager_gen.py
Copy file name to clipboardExpand all lines: paddle/fluid/eager/auto_code_generator/generator/eager_gen.py+3-3Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
694 | 694 |
| |
695 | 695 |
| |
696 | 696 |
| |
697 |
| - | |
| 697 | + | |
698 | 698 |
| |
699 | 699 |
| |
700 | 700 |
| |
| |||
731 | 731 |
| |
732 | 732 |
| |
733 | 733 |
| |
734 |
| - | |
| 734 | + | |
735 | 735 |
| |
736 | 736 |
| |
737 | 737 |
| |
| |||
2949 | 2949 |
| |
2950 | 2950 |
| |
2951 | 2951 |
| |
2952 |
| - | |
| 2952 | + | |
2953 | 2953 |
| |
2954 | 2954 |
| |
2955 | 2955 |
| |
|
paddle/fluid/eager/backward.cc
Copy file name to clipboardExpand all lines: paddle/fluid/eager/backward.cc+5-3Lines changed: 5 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
180 | 180 |
| |
181 | 181 |
| |
182 | 182 |
| |
183 |
| - | |
| 183 | + | |
| 184 | + | |
184 | 185 |
| |
185 | 186 |
| |
186 | 187 |
| |
| |||
354 | 355 |
| |
355 | 356 |
| |
356 | 357 |
| |
357 |
| - | |
| 358 | + | |
358 | 359 |
| |
359 |
| - | |
| 360 | + | |
| 361 | + | |
360 | 362 |
| |
361 | 363 |
| |
362 | 364 |
| |
|
paddle/fluid/eager/custom_operator/custom_operator_utils.cc
Copy file name to clipboardExpand all lines: paddle/fluid/eager/custom_operator/custom_operator_utils.cc+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
810 | 810 |
| |
811 | 811 |
| |
812 | 812 |
| |
813 |
| - | |
| 813 | + | |
814 | 814 |
| |
815 | 815 |
| |
816 | 816 |
| |
|
paddle/fluid/eager/grad_node_info.cc
Copy file name to clipboardExpand all lines: paddle/fluid/eager/grad_node_info.cc+6-6Lines changed: 6 additions & 6 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 |
| |
44 |
| - | |
| 44 | + | |
45 | 45 |
| |
46 | 46 |
| |
47 | 47 |
| |
| |||
105 | 105 |
| |
106 | 106 |
| |
107 | 107 |
| |
108 |
| - | |
| 108 | + | |
109 | 109 |
| |
110 | 110 |
| |
111 | 111 |
| |
| |||
195 | 195 |
| |
196 | 196 |
| |
197 | 197 |
| |
198 |
| - | |
| 198 | + | |
199 | 199 |
| |
200 | 200 |
| |
201 | 201 |
| |
| |||
295 | 295 |
| |
296 | 296 |
| |
297 | 297 |
| |
298 |
| - | |
| 298 | + | |
299 | 299 |
| |
300 | 300 |
| |
301 | 301 |
| |
| |||
762 | 762 |
| |
763 | 763 |
| |
764 | 764 |
| |
765 |
| - | |
| 765 | + | |
766 | 766 |
| |
767 | 767 |
| |
768 | 768 |
| |
|
paddle/fluid/eager/grad_tensor_holder.cc
Copy file name to clipboardExpand all lines: paddle/fluid/eager/grad_tensor_holder.cc+11-10Lines changed: 11 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
61 |
| - | |
| 61 | + | |
62 | 62 |
| |
63 | 63 |
| |
64 | 64 |
| |
| |||
112 | 112 |
| |
113 | 113 |
| |
114 | 114 |
| |
115 |
| - | |
| 115 | + | |
116 | 116 |
| |
117 | 117 |
| |
118 | 118 |
| |
| |||
152 | 152 |
| |
153 | 153 |
| |
154 | 154 |
| |
155 |
| - | |
| 155 | + | |
156 | 156 |
| |
157 | 157 |
| |
158 | 158 |
| |
| |||
161 | 161 |
| |
162 | 162 |
| |
163 | 163 |
| |
164 |
| - | |
165 |
| - | |
166 |
| - | |
167 |
| - | |
168 |
| - | |
169 |
| - | |
170 |
| - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
171 | 172 |
| |
172 | 173 |
| |
173 | 174 |
| |
|
paddle/fluid/eager/tensor_wrapper.h
Copy file name to clipboardExpand all lines: paddle/fluid/eager/tensor_wrapper.h+4-4Lines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
46 |
| - | |
| 46 | + | |
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
51 |
| - | |
| 51 | + | |
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
| |||
92 | 92 |
| |
93 | 93 |
| |
94 | 94 |
| |
95 |
| - | |
| 95 | + | |
96 | 96 |
| |
97 | 97 |
| |
98 | 98 |
| |
| |||
102 | 102 |
| |
103 | 103 |
| |
104 | 104 |
| |
105 |
| - | |
| 105 | + | |
106 | 106 |
| |
107 | 107 |
| |
108 | 108 |
| |
|
paddle/fluid/eager/utils.cc
Copy file name to clipboardExpand all lines: paddle/fluid/eager/utils.cc+12-12Lines changed: 12 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
354 | 354 |
| |
355 | 355 |
| |
356 | 356 |
| |
357 |
| - | |
| 357 | + | |
358 | 358 |
| |
359 | 359 |
| |
360 | 360 |
| |
| |||
814 | 814 |
| |
815 | 815 |
| |
816 | 816 |
| |
817 |
| - | |
| 817 | + | |
818 | 818 |
| |
819 | 819 |
| |
820 | 820 |
| |
| |||
847 | 847 |
| |
848 | 848 |
| |
849 | 849 |
| |
850 |
| - | |
| 850 | + | |
851 | 851 |
| |
852 | 852 |
| |
853 |
| - | |
| 853 | + | |
854 | 854 |
| |
855 | 855 |
| |
856 | 856 |
| |
857 | 857 |
| |
858 | 858 |
| |
859 | 859 |
| |
860 | 860 |
| |
861 |
| - | |
| 861 | + | |
862 | 862 |
| |
863 | 863 |
| |
864 | 864 |
| |
865 | 865 |
| |
866 | 866 |
| |
867 | 867 |
| |
868 | 868 |
| |
869 |
| - | |
| 869 | + | |
870 | 870 |
| |
871 | 871 |
| |
872 |
| - | |
| 872 | + | |
873 | 873 |
| |
874 | 874 |
| |
875 | 875 |
| |
876 | 876 |
| |
877 | 877 |
| |
878 | 878 |
| |
879 | 879 |
| |
880 |
| - | |
| 880 | + | |
881 | 881 |
| |
882 | 882 |
| |
883 | 883 |
| |
| |||
899 | 899 |
| |
900 | 900 |
| |
901 | 901 |
| |
902 |
| - | |
| 902 | + | |
903 | 903 |
| |
904 | 904 |
| |
905 | 905 |
| |
906 | 906 |
| |
907 | 907 |
| |
908 | 908 |
| |
909 |
| - | |
| 909 | + | |
910 | 910 |
| |
911 | 911 |
| |
912 | 912 |
| |
| |||
917 | 917 |
| |
918 | 918 |
| |
919 | 919 |
| |
920 |
| - | |
| 920 | + | |
921 | 921 |
| |
922 | 922 |
| |
923 | 923 |
| |
924 | 924 |
| |
925 | 925 |
| |
926 | 926 |
| |
927 |
| - | |
| 927 | + | |
928 | 928 |
| |
929 | 929 |
| |
930 | 930 |
| |
|
paddle/fluid/framework/tensor_util.cc
Copy file name to clipboardExpand all lines: paddle/fluid/framework/tensor_util.cc+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1121 | 1121 |
| |
1122 | 1122 |
| |
1123 | 1123 |
| |
1124 |
| - | |
| 1124 | + | |
1125 | 1125 |
| |
1126 | 1126 |
| |
1127 | 1127 |
| |
|
paddle/fluid/imperative/gradient_accumulator.cc
Copy file name to clipboardExpand all lines: paddle/fluid/imperative/gradient_accumulator.cc+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
134 | 134 |
| |
135 | 135 |
| |
136 | 136 |
| |
137 |
| - | |
| 137 | + | |
138 | 138 |
| |
139 | 139 |
| |
140 | 140 |
| |
|
You can’t perform that action at this time.
0 commit comments