-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
【Hackathon 78】为Paddle-TRT增加cumsum算子 #52518
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
self.trt_param.precision = paddle_infer.PrecisionType.Float32 | ||
yield self.create_inference_config(), (1, 2), 1e-5 | ||
self.trt_param.precision = paddle_infer.PrecisionType.Half | ||
yield self.create_inference_config(), (1, 2), 1e-2 |
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.
不能写死(1,2),需要根据trt版本进行判断。目前windows ci是trt 7.0
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.
已修改
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.
LGTM
PR types
Others
PR changes
Others
Describe
paddle文档对于cumsum算子的定义:
使用TRT中的addLoop层,将每次循环的输出拼接起来,得到最后cumsum的结果。
python单测通过:
由于在opmaker的时候,axis会默认设为-1,所以op_teller里没有增加有关axis的判断。