-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
base: develop
Are you sure you want to change the base?
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
>>> def forward(self, x): | ||
return F.relu(self.linear(x)) | ||
|
||
>>> def test_paddle_to_tensorrt_conversion(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不要定义函数了,像其他api一样,能够直接执行后续代码就可以了,注意后续代码每一步加注释说明一下
python/paddle/tensorrt/export.py
Outdated
>>> if __name__ == "__main__": | ||
>>> test_paddle_to_tensorrt_conversion() |
There was a problem hiding this comment.
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(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同上
python/paddle/tensorrt/export.py
Outdated
>>> if __name__ == "__main__": | ||
>>> test_paddle_to_tensorrt_conversion() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同上
PR Category
Inference
PR Types
Docs
Description
Pcard-71500