-
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]add equal, elementwise_op trt 0d #53704
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
❌ The PR is not created using PR's template. You can refer to this Demo. |
@@ -114,6 +114,25 @@ struct SimpleOpTypeSetTeller : public Teller { | |||
"sign", "silu", "logical_not", "reciprocal", "tanh_shrink", | |||
"logsigmoid", "erf", "bitwise_not", "equal", "not_equal", | |||
"rsqrt"}; | |||
|
|||
// Static shape does not support 0 or 1 dim's input. | |||
if (!with_dynamic_shape) { |
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.
是的 每个OP判断有点冗余
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
…rRT (#53752) * scale, square, sum, swish trt op converter support zero dim (#53660) * [Paddle-Inference] Support trt 0dims of expand_as_v2 and mish. (#53627) * support_expand_mish * add unitest for reshpe 0 dims (#53685) * Add trt pow converter. (#53462) * Add trt pow converter. * update to use AddConstantLayer * add dims=0 ut * [inference Zero-Dim]add equal, elementwise_op trt 0d (#53704) * [inference Zero-Dim]prelu trt converter support zero dim tensor (#53634) * prelu op trt converter support zero dim * [Inference Zero-Dim] Support trt 0dim of gelu, hard_swish, hard_sigmoid and leaky_relu (#53714) * support_act * delete_silu * [inference zero dim] softmax, stack op trt converter support zero dim (#53729) * softmax support * support stack * remove unused code * update --------- Co-authored-by: Yuanle Liu <[email protected]> Co-authored-by: xiaoxiaohehe001 <[email protected]> Co-authored-by: zhoutianzi666 <[email protected]> Co-authored-by: Wilber <[email protected]>
PR types
Others
PR changes
Others
Description