CARVIEW |
Select Language
HTTP/2 200
date: Sat, 26 Jul 2025 03:14:21 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/"0dc32e3cab047fbc92fccaade7904062"
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=12r5nY9UX8KkVDHXTtKL9kKSkLe%2BeAhhW9NYyPfHFuxdLms3%2Bm4HiN1oQjTWyiVYwhwVuJxYp5BokXjJpaLcH7loZP7bAA4YkxWKXnXLax5dHhJ%2BOLcmVG6F3zyT9G6kTPERa2uTqEfTgWO2gdnjAU2IL%2FCiq3vKu5XJhJaPMWZR%2BSLgxvtFd%2BWe7BZZre3dmVJ3YU0MEEItqzTYFBZ3LMWSVtQH8uIp1FiQCwxDGYg4ylNT%2FBu6kEmlY0%2BFuTAHaJUjo6X1tZqDK5NTq16vqg%3D%3D--HWBQgdt6MHvFrB%2F2--DRePUnkfTasjg5Qqcp4tRA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1688531078.1753499660; Path=/; Domain=github.com; Expires=Sun, 26 Jul 2026 03:14:20 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 26 Jul 2026 03:14:20 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 9114:3B05D7:F7D26:180DA7:6884480C
[Paddle TensorRT] Refactor subgrah segmentation and operator convter … · PaddlePaddle/Paddle@9f37f99 · GitHub




authored Dismiss banner
Copy file name to clipboardExpand all lines: paddle/cinn/hlir/dialect/operator/transforms/cinn_group_cluster_pass.cc
Copy file name to clipboardExpand all lines: paddle/fluid/framework/new_executor/instruction/tensorrt_engine_instruction.cc
Copy file name to clipboardExpand all lines: paddle/fluid/framework/new_executor/instruction/tensorrt_engine_instruction.h
Copy file name to clipboardExpand all lines: paddle/fluid/pir/dialect/operator/ir/op_attribute.h
Copy file name to clipboardExpand all lines: paddle/fluid/pir/transforms/CMakeLists.txt
Copy file name to clipboardExpand all lines: paddle/fluid/pir/transforms/passes.h
Copy file name to clipboardExpand all lines: paddle/fluid/pir/transforms/sub_graph_detector.cc
Copy file name to clipboardExpand all lines: paddle/fluid/pir/transforms/sub_graph_detector.h
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit 9f37f99

[Paddle TensorRT] Refactor subgrah segmentation and operator convter of Paddle TensorRT base on PIR. (#67054)
* adapt tensorrt
* fix compile bugs
* delete thirdparty
* add unittest
* fix py3 compile
* fix kunlun200
* fix windows inference
* pir support trt marker : matmul
* fix windows bug
* add another pattern
* update
* fix compile
* fix compile
* polish code
* polish code
* polish code
* update
* pool2d+其他
* reshape op
* fix
* 加入reshape
* support build trt_op in python
* rename construction params
* fix bug
* fix compile bugs
* logging.h放到.cc,修改了conv2d,增加了dropout
* conv2d_transpose fused_conv2d_add_act depthwise_conv2d depthwise_conv2d_transpose
* 修改depthwise_conv2d_transpose错误
* fix
* 修改pool2d+完成deformable_conv+bmm+arange+sign
* logical_not+group_norm+transpose+gather+gather_nd+concat+flatten
* add partiton pass
* support collect shape
* support re-collect shape
* add
* add_python
* add
* add
* adapt trt engine op
* update instrunction
* add2
* add
* add
* add
* add
* format code
* add_trt_version_check
* support multi block share input and output
* conv2d+relu+poold2d+add+softmax+reshape单侧
* 加了silu,修改GroupNrom,加了Matmul,Scale单测
* 添加了Flatten and Concat Conv-transpose单侧
* 添加了unsqueeze slice进trt,验证了flatten,concat,GatherNd,slice算子单侧
* 漏了提单侧
* 加了batchnorm,pool2d的converter,修改了marker的pool2d,修改了scale converter
* 忘了加test_converter.py
* 添加了converter_utils.py
* 漏了一部分
* fix
* 修改pd_op.flatten的marker
* 修改flatten的单侧
* 添加castop
* 测试代码
* d
* 修改pd_op.add,以及单侧,添加pd_op.flatten,resnet50全部进trt
* fix
* fix
* 添加split op
* 修改cast单测的输入类型为float32
* 修改cast算子
* add idg program
* 为cast算子添加dtype的判断
* 删除cast算子的无关注释
* 修改castop格式
* 修改castop格式
* 修改cast代码格式并且删除trt 7.0的判断
* 添加split的开发和单测
* 修改了squeezePattern,增加了splitPattern,增加了squeeze,unsqueeze,split单测,pd_op.layer_norm converter
* fix
* Revert "Add trt"
* fix
* fix
* Revert "Revert "Add trt""
* tianjia
* fix
* Update test_converter.py
* 添加where_index
* 格式
* 添加了NonZero的marker和单测,添加了pd_op.concat的converter
* fix
* 修改split_with_num
* 实现了pd_op.concat,并修改了converter.py对builtin.combine的处理
* fix
* 添加了gelu marker
* 添加了gelu converter
* 添加split_with_num的maker和单测
* split_with_num op的maker 修改
* 修改split 和 split_with_num 关于输出的判断
* 增加unsqueeze,squeeze,unsqueeze marker修改
* fix
* 添加pd_op.multiply以及pd_op.greater_equal的maker和单测
* 添加无限制算子的单测
* 添加无限制算子的单测
* 添加有限制算子maker的单测
* fix
* 修改Greate_equal op的VLOG日志
* 修改Greate_equal op的VLOG日志 version2
* add_trt
* marker
* fix
* fix
* 移除对cinn的依赖
* fix util.py
* fix util.py
* fix pre-commit
* fix init and registry.py
* fix mac 单侧bug
* delete custom_plugin.py
* fix python/paddle/pp_tensorrt/__init__.py codestype-check
* Rename pp_tensorrt to tensorrt, move all unit tests of tensorrt to test/tensorrt, and delete unused code.
* delete pp_tensorrt
* delete unused code
* delete unused code
* Delete the duplicate parts between util.py and get_program.py.
* test_converter.py CI Timeout
* fix bug
* delete test_converter_bert,test_converter_idg,test_converter_resnet50,test_converter_dummy print
* fix test_converter_bert codecheck
* windows ci combine bug
* fix
* ci不显示
* delete get_program.py print
* fix core.py路径不对
* fix cinn_group_cluster_pass combine not found cinn::OperatorDialect
* fix test_tensorrt_engine_instruction.cc Serialize the inference engine and save it to a file.
* delete unused code:
* delete unused code
* move get_program.py to the test/tensorrt
* Added a check in the Marker unit test to verify if the op has the __l_trt__ attribute.
* fix test_trt_marker_non_zero.py
---------
Co-authored-by: YuanRisheng <yuanrisheng@baidu.com>
Co-authored-by: yuanlehome <yuanlehome@163.com>
Co-authored-by: root <root@szzj-bcc-offline-1487319.szzj.baidu.com>
Co-authored-by: vivienfanghua <vivienfanghua@163.com>
Co-authored-by: vivienfanghuagood <89012307+vivienfanghuagood@users.noreply.github.com>
Co-authored-by: Layssy <lay1211252464@163.com>1 parent 31d23da commit 9f37f99Copy full SHA for 9f37f99
File tree
Expand file treeCollapse file tree
71 files changed
+5437
-19
lines changedFilter options
- paddle
- cinn/hlir/dialect/operator/transforms
- common
- fluid
- framework/new_executor/instruction
- pir
- dialect/operator/ir
- transforms
- tensorrt
- pir
- include/core
- src/core
- python
- paddle/tensorrt
- impls
- test
- cpp/inference/tensorrt
- tensorrt
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Expand file treeCollapse file tree
71 files changed
+5437
-19
lines changedpaddle/cinn/hlir/dialect/operator/transforms/cinn_group_cluster_pass.cc
Copy file name to clipboardExpand all lines: paddle/cinn/hlir/dialect/operator/transforms/cinn_group_cluster_pass.cc+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
| 34 | + | |
34 | 35 |
| |
35 | 36 |
| |
36 | 37 |
| |
|
+6Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1892 | 1892 |
| |
1893 | 1893 |
| |
1894 | 1894 |
| |
| 1895 | + | |
| 1896 | + | |
| 1897 | + | |
| 1898 | + | |
| 1899 | + | |
| 1900 | + |
paddle/fluid/framework/new_executor/instruction/tensorrt_engine_instruction.cc
Copy file name to clipboardExpand all lines: paddle/fluid/framework/new_executor/instruction/tensorrt_engine_instruction.cc+24-2Lines changed: 24 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
37 |
| - | |
| 37 | + | |
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
| |||
155 | 155 |
| |
156 | 156 |
| |
157 | 157 |
| |
158 |
| - | |
| 158 | + | |
| 159 | + | |
159 | 160 |
| |
160 | 161 |
| |
161 | 162 |
| |
| |||
759 | 760 |
| |
760 | 761 |
| |
761 | 762 |
| |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
762 | 784 |
| |
763 | 785 |
|
paddle/fluid/framework/new_executor/instruction/tensorrt_engine_instruction.h
Copy file name to clipboardExpand all lines: paddle/fluid/framework/new_executor/instruction/tensorrt_engine_instruction.h+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
42 | 42 |
| |
43 | 43 |
| |
44 | 44 |
| |
| 45 | + | |
45 | 46 |
| |
46 | 47 |
| |
47 | 48 |
| |
|
paddle/fluid/pir/dialect/operator/ir/op_attribute.h
Copy file name to clipboardExpand all lines: paddle/fluid/pir/dialect/operator/ir/op_attribute.h+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
| 28 | + | |
28 | 29 |
| |
29 | 30 |
| |
30 | 31 |
| |
|
paddle/fluid/pir/transforms/CMakeLists.txt
Copy file name to clipboardExpand all lines: paddle/fluid/pir/transforms/CMakeLists.txt+8-4Lines changed: 8 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 |
| - | |
4 |
| - | |
5 |
| - | |
6 |
| - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
7 | 6 |
| |
8 | 7 |
| |
9 | 8 |
| |
| |||
16 | 15 |
| |
17 | 16 |
| |
18 | 17 |
| |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
19 | 23 |
| |
20 | 24 |
| |
21 | 25 |
| |
|
paddle/fluid/pir/transforms/passes.h
Copy file name to clipboardExpand all lines: paddle/fluid/pir/transforms/passes.h+5Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
93 | 93 |
| |
94 | 94 |
| |
95 | 95 |
| |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + |
paddle/fluid/pir/transforms/sub_graph_detector.cc
Copy file name to clipboardExpand all lines: paddle/fluid/pir/transforms/sub_graph_detector.cc+21-2Lines changed: 21 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
| 26 | + | |
26 | 27 |
| |
27 | 28 |
| |
| 29 | + | |
| 30 | + | |
| 31 | + | |
28 | 32 |
| |
29 | 33 |
| |
30 | 34 |
| |
| |||
34 | 38 |
| |
35 | 39 |
| |
36 | 40 |
| |
37 |
| - | |
38 | 41 |
| |
39 | 42 |
| |
40 | 43 |
| |
| |||
609 | 612 |
| |
610 | 613 |
| |
611 | 614 |
| |
| 615 | + | |
612 | 616 |
| |
| 617 | + | |
613 | 618 |
| |
614 | 619 |
| |
615 | 620 |
| |
| |||
622 | 627 |
| |
623 | 628 |
| |
624 | 629 |
| |
625 |
| - | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
626 | 633 |
| |
627 | 634 |
| |
628 | 635 |
| |
| |||
633 | 640 |
| |
634 | 641 |
| |
635 | 642 |
| |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
636 | 655 |
| |
637 | 656 |
| |
638 | 657 |
| |
|
paddle/fluid/pir/transforms/sub_graph_detector.h
Copy file name to clipboardExpand all lines: paddle/fluid/pir/transforms/sub_graph_detector.h+2Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
| 26 | + | |
26 | 27 |
| |
| 28 | + | |
27 | 29 |
| |
28 | 30 |
| |
29 | 31 |
| |
|
You can’t perform that action at this time.
0 commit comments