-
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
[inference Zero-Dim][trt]Unary operation support 0d #53506
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
❌ The PR is not created using PR's template. You can refer to this Demo. |
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.
Need to check why PR#53383 can pass CI.
+ runtime_version[2] * 10 | ||
< 8600 | ||
and self.dims == 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.
- A common function can be extracted to calculate TensorRT version number
- In line 174, use
ver = paddle_infer.get_trt_compile_version()
to get version
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.
- A common function can be extracted to calculate TensorRT version number
- In line 174, use
ver = paddle_infer.get_trt_compile_version()
to get version
When the OP behavior is inconsistent among different TensorRT versions, using the runtime version is more appropriate than the compiled version, making it easier to test multiple versions.
@@ -60,6 +60,7 @@ def generate_int_input(dims, batch, attrs: List[Dict[str, Any]]): | |||
"sin", | |||
"cos", | |||
"tan", | |||
"tanh", |
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.
If remove tanh
, where to test it?
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.
If remove
tanh
, where to test it?
move tanh
from test_trt_convert_activation.py to test_trt_convert_unary.py.
PR types
Others
PR changes
Others
Description