CARVIEW |
Select Language
HTTP/2 200
date: Mon, 28 Jul 2025 21:38:47 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/"f120987aaa82805db360772a62fef85a"
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=iyz0C%2BbrreALgig8quGdGyt3NqeDnJ%2F%2Fia%2FUYTHydDJ8e%2Bl0%2BVtAupJ53IS%2FVHzKa4ZzrjgkSJ2Ke7nctiO2WjsfVgjcymD8851%2FyQpWBUtUhSA5YSQEec2X8P0rtt%2F0UlpZwgV2bRt3lbxxTT3ODPNr83EDe6FgBpWeZJvoF8e%2B0sM7oIEdiwvQwvFgYpeomgVEdvWHmu6TFRINisfj5RVgpEg61MKd3eX1vl%2FrJpYAbiH3KL6jusiXghBS71xhExeTdRGzwsoA0mIn1vGtLg%3D%3D--suVi%2F20kdb1BPOou--VmVBuPJTMvUMdKSSlxO63A%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1484779211.1753738727; Path=/; Domain=github.com; Expires=Tue, 28 Jul 2026 21:38:47 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Tue, 28 Jul 2026 21:38:47 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: B13A:E69F3:CA06F:1179AC:6887EDE7
[0-size Tensor No.343, 350, 351] Add 0-size Tensor support for paddle… · PaddlePaddle/Paddle@263f2e0 · GitHub
Copy file name to clipboardExpand all lines: paddle/phi/kernels/impl/tril_triu_grad_kernel_impl.h
Copy file name to clipboardExpand all lines: paddle/phi/kernels/impl/tril_triu_kernel_impl.h
Copy file name to clipboardExpand all lines: paddle/phi/kernels/xpu/tril_triu_grad_kernel.cc
Copy file name to clipboardExpand all lines: paddle/phi/kernels/xpu/tril_triu_kernel.cc
Copy file name to clipboardExpand all lines: test/legacy_test/test_tril_triu_op.py
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit 263f2e0
authored
[0-size Tensor No.343, 350, 351] Add 0-size Tensor support for paddle.tril paddle.Tensor.tril paddle.triu API. (#72814)
* Create test_tril_op.py
增加对tril的单测
* Create test_triu_op.py
增加对triu的单测
* Update test_tril_triu_op.py
增加了对0size 的支持
* Create test_xpu_tril_triu_0size_op.py
xpu的单测
* Rename test_xpu_tril_triu_0size_op.py to test_tril_triu_xpu_0size_op.py
* Delete test/legacy_test/test_triu_op.py
* Delete test/legacy_test/test_tril_op.py
* Update test_tril_triu_op.py
* Update test_tril_triu_op.py
* Update test_tril_triu_op.py
* Fix code style issues
* Update tril_triu_kernel_impl.h
* Update tril_triu_grad_kernel_impl.h
* Update tril_triu_kernel_impl.h
* Update tril_triu_grad_kernel_impl.h
* Update test_tril_triu_op.py
* Update test_tril_triu_op.py
* Update test_tril_triu_op_xpu.py
* Delete test/xpu/test_tril_triu_xpu_0size_op.py
* Update tril_triu_kernel_impl.h
* Update test_tril_triu_op_xpu.py
* Update test_tril_triu_op.py
* Update tril_triu_grad_kernel_impl.h
* Update test_tril_triu_op.py
* Update test_tril_triu_op_xpu.py
* Fix code style issues with pre-commit
* Update test_tril_triu_op.py
* Update test_tril_triu_op.py
* precommitfix
* Update test_tril_triu_op.py
* Update test_tril_triu_op.py
* Update test_tril_triu_op.py
* Update tril_triu_grad_kernel_impl.h
* Update test_tril_triu_op.py
* Update tril_triu_grad_kernel_impl.h
* Update test_tril_triu_op.py
* Update tril_triu_grad_kernel_impl.h
* Update test_tril_triu_op.py
* Update test_tril_triu_op.py
* Update test_tril_triu_op.py
* Update test_tril_triu_op.py
* precommit fix
* Update test_tril_triu_op.py
* precommit fix
* Update tril_triu_kernel.cc
* Update tril_triu_grad_kernel.cc1 parent 892456d commit 263f2e0Copy full SHA for 263f2e0
File tree
Expand file treeCollapse file tree
5 files changed
+95
-0
lines changedFilter options
- paddle/phi/kernels
- impl
- xpu
- test/legacy_test
Expand file treeCollapse file tree
5 files changed
+95
-0
lines changedpaddle/phi/kernels/impl/tril_triu_grad_kernel_impl.h
Copy file name to clipboardExpand all lines: paddle/phi/kernels/impl/tril_triu_grad_kernel_impl.h+10Lines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
45 | 45 |
| |
46 | 46 |
| |
47 | 47 |
| |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
48 | 53 |
| |
49 | 54 |
| |
50 | 55 |
| |
| |||
53 | 58 |
| |
54 | 59 |
| |
55 | 60 |
| |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
56 | 66 |
| |
57 | 67 |
| |
58 | 68 |
| |
|
paddle/phi/kernels/impl/tril_triu_kernel_impl.h
Copy file name to clipboardExpand all lines: paddle/phi/kernels/impl/tril_triu_kernel_impl.h+10Lines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
44 | 44 |
| |
45 | 45 |
| |
46 | 46 |
| |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
47 | 52 |
| |
48 | 53 |
| |
49 | 54 |
| |
| |||
52 | 57 |
| |
53 | 58 |
| |
54 | 59 |
| |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
55 | 65 |
| |
56 | 66 |
| |
57 | 67 |
| |
|
paddle/phi/kernels/xpu/tril_triu_grad_kernel.cc
Copy file name to clipboardExpand all lines: paddle/phi/kernels/xpu/tril_triu_grad_kernel.cc+10Lines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
51 | 51 |
| |
52 | 52 |
| |
53 | 53 |
| |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
54 | 59 |
| |
55 | 60 |
| |
56 | 61 |
| |
| |||
59 | 64 |
| |
60 | 65 |
| |
61 | 66 |
| |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
62 | 72 |
| |
63 | 73 |
| |
64 | 74 |
| |
|
paddle/phi/kernels/xpu/tril_triu_kernel.cc
Copy file name to clipboardExpand all lines: paddle/phi/kernels/xpu/tril_triu_kernel.cc+10Lines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
51 | 51 |
| |
52 | 52 |
| |
53 | 53 |
| |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
54 | 59 |
| |
55 | 60 |
| |
56 | 61 |
| |
| |||
59 | 64 |
| |
60 | 65 |
| |
61 | 66 |
| |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
62 | 72 |
| |
63 | 73 |
| |
64 | 74 |
| |
|
test/legacy_test/test_tril_triu_op.py
Copy file name to clipboardExpand all lines: test/legacy_test/test_tril_triu_op.py+55Lines changed: 55 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
327 | 327 |
| |
328 | 328 |
| |
329 | 329 |
| |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
330 | 385 |
| |
331 | 386 |
|
You can’t perform that action at this time.
0 commit comments