CARVIEW |
Select Language
HTTP/2 200
date: Fri, 25 Jul 2025 10:50:52 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/"901d50df080d61f13fc0de0a8e05dd19"
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=vHXq242kuGvTolWqH4bwV%2F4u7ISQLGiIJCL0y7c7VUWig4vXinlgjlDJRwSyBcrkfewyHYuIJhPUqcvpJuTrTM83nFAM3%2FMNPUuDGp4XRtcHjMWtcbrdSZtCrlG2UJi19i2bh9tn3e1bFiSuuIz2sXi5q9muAaypCIh8tRjIPKonMZFClv%2FLTyxb7DPYEm9Whw63VbwnBWMeb39RfO5TUHkCM6i3T%2FYWujpG03a7BuZzihFz%2BolPVLqZP12DjXAtzJ1MxFGKTXP%2BBKD8hVUE6A%3D%3D--sWzrw1ruB2QzPq%2BF--lmVbCUwkEW%2F2QYlZwFf1eQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.2074229384.1753440650; Path=/; Domain=github.com; Expires=Sat, 25 Jul 2026 10:50:50 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sat, 25 Jul 2026 10:50:50 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 8416:DBBD4:7A1820:9017E0:6883618A
【Hackathon 6th No.25】[Typing] 为 paddle.histogram 进行功能对齐与功能增强 -part (#… · PaddlePaddle/Paddle@0c1eed4 · GitHub


authored
Copy file name to clipboardExpand all lines: paddle/phi/infermeta/binary.cc
Copy file name to clipboardExpand all lines: paddle/phi/infermeta/binary.h
Copy file name to clipboardExpand all lines: paddle/phi/infermeta/unary.cc
Copy file name to clipboardExpand all lines: paddle/phi/infermeta/unary.h
Copy file name to clipboardExpand all lines: paddle/phi/kernels/cpu/histogram_kernel.cc
Copy file name to clipboardExpand all lines: paddle/phi/kernels/gpu/histogram_kernel.cu
Copy file name to clipboardExpand all lines: paddle/phi/kernels/histogram_kernel.h
Copy file name to clipboardExpand all lines: paddle/phi/ops/yaml/op_compat.yaml
Copy file name to clipboardExpand all lines: paddle/phi/ops/yaml/op_version.yaml
Copy file name to clipboardExpand all lines: paddle/phi/ops/yaml/ops.yaml
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit 0c1eed4
【Hackathon 6th No.25】[Typing] 为 paddle.histogram 进行功能对齐与功能增强 -part (#63346)
* Refactor histogram function to support weight and density in linalg.py
* Add histogram_bin_edges function to support bin edges computation in linalg.py
* Add class to test histogram weight and density
* Modify parameter position
* add histogram_bin_edges unit test
* add test case
* fix doc
* add test case
* update the func doc and fix histogram_bin_edges parameter
* fix doc
* remove merge mistake
* fix doc case
* Update python/paddle/tensor/linalg.py
* Update python/paddle/tensor/linalg.py
* Update python/paddle/tensor/linalg.py
* Apply suggestions from code review
* fix typing
* move to binary
* move histogramInferMeta to binary
---------
Co-authored-by: zachary sun <70642955+sunzhongkai588@users.noreply.github.com>
Co-authored-by: Nyakku Shigure <sigure.qaq@gmail.com>1 parent bca5d56 commit 0c1eed4Copy full SHA for 0c1eed4
File tree
Expand file treeCollapse file tree
15 files changed
+456
-80
lines changedFilter options
- paddle/phi
- infermeta
- kernels
- cpu
- gpu
- ops/yaml
- python/paddle
- tensor
- test/legacy_test
Expand file treeCollapse file tree
15 files changed
+456
-80
lines changedpaddle/phi/infermeta/binary.cc
Copy file name to clipboardExpand all lines: paddle/phi/infermeta/binary.cc+41Lines changed: 41 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2248 | 2248 |
| |
2249 | 2249 |
| |
2250 | 2250 |
| |
| 2251 | + | |
| 2252 | + | |
| 2253 | + | |
| 2254 | + | |
| 2255 | + | |
| 2256 | + | |
| 2257 | + | |
| 2258 | + | |
| 2259 | + | |
| 2260 | + | |
| 2261 | + | |
| 2262 | + | |
| 2263 | + | |
| 2264 | + | |
| 2265 | + | |
| 2266 | + | |
| 2267 | + | |
| 2268 | + | |
| 2269 | + | |
| 2270 | + | |
| 2271 | + | |
| 2272 | + | |
| 2273 | + | |
| 2274 | + | |
| 2275 | + | |
| 2276 | + | |
| 2277 | + | |
| 2278 | + | |
| 2279 | + | |
| 2280 | + | |
| 2281 | + | |
| 2282 | + | |
| 2283 | + | |
| 2284 | + | |
| 2285 | + | |
| 2286 | + | |
| 2287 | + | |
| 2288 | + | |
| 2289 | + | |
| 2290 | + | |
| 2291 | + | |
2251 | 2292 |
| |
2252 | 2293 |
| |
2253 | 2294 |
| |
|
paddle/phi/infermeta/binary.h
Copy file name to clipboardExpand all lines: paddle/phi/infermeta/binary.h+8Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
415 | 415 |
| |
416 | 416 |
| |
417 | 417 |
| |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
418 | 426 |
| |
419 | 427 |
| |
420 | 428 |
| |
|
paddle/phi/infermeta/unary.cc
Copy file name to clipboardExpand all lines: paddle/phi/infermeta/unary.cc-21Lines changed: 0 additions & 21 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2072 | 2072 |
| |
2073 | 2073 |
| |
2074 | 2074 |
| |
2075 |
| - | |
2076 |
| - | |
2077 |
| - | |
2078 |
| - | |
2079 |
| - | |
2080 |
| - | |
2081 |
| - | |
2082 |
| - | |
2083 |
| - | |
2084 |
| - | |
2085 |
| - | |
2086 |
| - | |
2087 |
| - | |
2088 |
| - | |
2089 |
| - | |
2090 |
| - | |
2091 |
| - | |
2092 |
| - | |
2093 |
| - | |
2094 |
| - | |
2095 |
| - | |
2096 | 2075 |
| |
2097 | 2076 |
| |
2098 | 2077 |
| |
|
paddle/phi/infermeta/unary.h
Copy file name to clipboardExpand all lines: paddle/phi/infermeta/unary.h-3Lines changed: 0 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
356 | 356 |
| |
357 | 357 |
| |
358 | 358 |
| |
359 |
| - | |
360 |
| - | |
361 |
| - | |
362 | 359 |
| |
363 | 360 |
| |
364 | 361 |
| |
|
paddle/phi/kernels/cpu/histogram_kernel.cc
Copy file name to clipboardExpand all lines: paddle/phi/kernels/cpu/histogram_kernel.cc+39-14Lines changed: 39 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
| 1 | + | |
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
| 20 | + | |
| 21 | + | |
20 | 22 |
| |
21 | 23 |
| |
22 |
| - | |
23 | 24 |
| |
24 | 25 |
| |
25 | 26 |
| |
| 27 | + | |
26 | 28 |
| |
27 | 29 |
| |
28 | 30 |
| |
| 31 | + | |
29 | 32 |
| |
30 | 33 |
| |
31 | 34 |
| |
32 | 35 |
| |
33 | 36 |
| |
34 | 37 |
| |
| 38 | + | |
35 | 39 |
| |
36 | 40 |
| |
37 |
| - | |
38 |
| - | |
39 |
| - | |
40 |
| - | |
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
| |||
82 | 82 |
| |
83 | 83 |
| |
84 | 84 |
| |
85 |
| - | |
86 |
| - | |
87 |
| - | |
88 |
| - | |
89 |
| - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
90 | 117 |
| |
91 | 118 |
| |
92 | 119 |
| |
| |||
100 | 127 |
| |
101 | 128 |
| |
102 | 129 |
| |
103 |
| - | |
104 |
| - | |
105 |
| - | |
| 130 | + |
paddle/phi/kernels/gpu/histogram_kernel.cu
Copy file name to clipboardExpand all lines: paddle/phi/kernels/gpu/histogram_kernel.cu+63-18Lines changed: 63 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 |
| - | |
19 | 18 |
| |
20 | 19 |
| |
| 20 | + | |
| 21 | + | |
21 | 22 |
| |
22 | 23 |
| |
| 24 | + | |
23 | 25 |
| |
24 | 26 |
| |
25 | 27 |
| |
| |||
41 | 43 |
| |
42 | 44 |
| |
43 | 45 |
| |
44 |
| - | |
| 46 | + | |
45 | 47 |
| |
| 48 | + | |
46 | 49 |
| |
47 | 50 |
| |
48 | 51 |
| |
49 | 52 |
| |
50 |
| - | |
51 |
| - | |
| 53 | + | |
| 54 | + | |
52 | 55 |
| |
53 | 56 |
| |
54 | 57 |
| |
| |||
60 | 63 |
| |
61 | 64 |
| |
62 | 65 |
| |
63 |
| - | |
| 66 | + | |
| 67 | + | |
64 | 68 |
| |
65 | 69 |
| |
66 | 70 |
| |
| |||
124 | 128 |
| |
125 | 129 |
| |
126 | 130 |
| |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
127 | 138 |
| |
128 | 139 |
| |
129 | 140 |
| |
| 141 | + | |
130 | 142 |
| |
131 | 143 |
| |
132 | 144 |
| |
| 145 | + | |
133 | 146 |
| |
134 | 147 |
| |
135 | 148 |
| |
136 | 149 |
| |
137 | 150 |
| |
138 | 151 |
| |
139 | 152 |
| |
140 |
| - | |
141 |
| - | |
142 |
| - | |
143 |
| - | |
| 153 | + | |
144 | 154 |
| |
145 | 155 |
| |
146 | 156 |
| |
| |||
200 | 210 |
| |
201 | 211 |
| |
202 | 212 |
| |
203 |
| - | |
204 |
| - | |
205 |
| - | |
206 |
| - | |
207 |
| - | |
208 |
| - | |
209 | 213 |
| |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
210 | 257 |
| |
211 | 258 |
| |
212 | 259 |
| |
| |||
216 | 263 |
| |
217 | 264 |
| |
218 | 265 |
| |
219 |
| - | |
220 |
| - | |
221 |
| - | |
| 266 | + |
paddle/phi/kernels/histogram_kernel.h
Copy file name to clipboardExpand all lines: paddle/phi/kernels/histogram_kernel.h+2Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
| 23 | + | |
23 | 24 |
| |
24 | 25 |
| |
25 | 26 |
| |
| 27 | + | |
26 | 28 |
| |
27 | 29 |
| |
28 | 30 |
|
paddle/phi/ops/yaml/op_compat.yaml
Copy file name to clipboardExpand all lines: paddle/phi/ops/yaml/op_compat.yaml+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1922 | 1922 |
| |
1923 | 1923 |
| |
1924 | 1924 |
| |
1925 |
| - | |
| 1925 | + | |
1926 | 1926 |
| |
1927 | 1927 |
| |
1928 | 1928 |
| |
|
paddle/phi/ops/yaml/op_version.yaml
Copy file name to clipboardExpand all lines: paddle/phi/ops/yaml/op_version.yaml+10Lines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
326 | 326 |
| |
327 | 327 |
| |
328 | 328 |
| |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
329 | 339 |
| |
330 | 340 |
| |
331 | 341 |
| |
|
paddle/phi/ops/yaml/ops.yaml
Copy file name to clipboardExpand all lines: paddle/phi/ops/yaml/ops.yaml+2-1Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2273 | 2273 |
| |
2274 | 2274 |
| |
2275 | 2275 |
| |
2276 |
| - | |
| 2276 | + | |
2277 | 2277 |
| |
2278 | 2278 |
| |
2279 | 2279 |
| |
| 2280 | + | |
2280 | 2281 |
| |
2281 | 2282 |
| |
2282 | 2283 |
| |
|
You can’t perform that action at this time.
0 commit comments