Skip to content
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

【Paddle TensorRT】fix document #71470

Open
wants to merge 15 commits into
base: develop
Choose a base branch
from

Conversation

lizexu123
Copy link
Contributor

PR Category

Inference

PR Types

Docs

Description

Pcard-71500

Copy link

paddle-bot bot commented Mar 6, 2025

你的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.

>>> def forward(self, x):
return F.relu(self.linear(x))

>>> def test_paddle_to_tensorrt_conversion():
Copy link
Contributor

Choose a reason for hiding this comment

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

不要定义函数了,像其他api一样,能够直接执行后续代码就可以了,注意后续代码每一步加注释说明一下

Comment on lines 654 to 655
>>> if __name__ == "__main__":
>>> test_paddle_to_tensorrt_conversion()
Copy link
Contributor

Choose a reason for hiding this comment

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

这个可以不用加

>>> def forward(self, x):
>>> return F.relu(self.linear(x))

>>> def test_paddle_to_tensorrt_conversion():
Copy link
Contributor

Choose a reason for hiding this comment

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

同上

Comment on lines 707 to 708
>>> if __name__ == "__main__":
>>> test_paddle_to_tensorrt_conversion()
Copy link
Contributor

Choose a reason for hiding this comment

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

同上

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.

2 participants