Skip to content

add pd_op.cast converter for PIR TRT #68216

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Oct 9, 2024
Merged

Conversation

zhink
Copy link
Contributor

@zhink zhink commented Sep 13, 2024

PR Category

Inference

PR Types

New features

Description

pcard-71500
添加了pd_op.cast到PIR TRT转换支持

Copy link

paddle-bot bot commented Sep 13, 2024

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

Copy link

paddle-ci-bot bot commented Sep 22, 2024

Sorry to inform you that 4da6950's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually.

def cast_converter(network, paddle_op, inputs):
input_tensor = inputs[0]
out_dtype = int(paddle_op.attrs().get("dtype"))
# 参考 paddle/phi/common/data_type.h enum DataType
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

修改为英文吧

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@zhink zhink force-pushed the trtlayer branch 2 times, most recently from 17808af to 192d19d Compare September 30, 2024 08:58
@zhink zhink marked this pull request as draft October 7, 2024 12:06
@zhink zhink marked this pull request as ready for review October 7, 2024 12:07
@zhink zhink marked this pull request as draft October 8, 2024 02:23
@zhink zhink marked this pull request as ready for review October 8, 2024 02:23
@YuanRisheng YuanRisheng merged commit 042eb6d into PaddlePaddle:develop Oct 9, 2024
26 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants