-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
enable deformable_detr for PDFE #17525
enable deformable_detr for PDFE #17525
Conversation
1d563ac
to
9b743a5
Compare
7614cbb
to
0b2b3a0
Compare
45784db
to
5c66841
Compare
This PR will be closed in a week because of 2 weeks of no activity. |
return outs[0] | ||
|
||
def main(): | ||
x = np.random.rand(8, 24, 32).astype(data_type) |
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.
It's better to expand the value range of input
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.
It's better to expand the value range of input
update it.
5c66841
to
794e619
Compare
This PR will be closed in a week because of 2 weeks of no activity. |
@ceciliapeng2011 Could you please take a review? Thanks! |
@@ -27,7 +27,7 @@ NamedOutputs top_k_v2(const NodeContext& node) { | |||
std::string sort_type = sorted ? "value" : "none"; | |||
std::string mode = largest ? "max" : "min"; | |||
|
|||
auto node_topk = std::make_shared<default_opset::TopK>(x, k_expected_node, axis, mode, sort_type); | |||
auto node_topk = std::make_shared<default_opset::TopK>(x, k_expected_node, axis, mode, sort_type, element::i64); |
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.
`Why do we have to fix the type to i64? Is it possible to be i32?
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.
- In most cases, we will not use
index
so we don't run into this issue. - The spec of topk shows the default dtype of index is i64. https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/topk_cn.html#fanhui
@ceciliapeng2011 can we merge? |
@ceciliapeng2011 could you help merge this PR? |
This PR will be closed in a week because of 2 weeks of no activity. |
This PR will be closed in a week because of 2 weeks of no activity. |
@xczhai Could you please fix the CI issue and proceed the PR merege? Thanks! |
5d8cd70
to
38f4dcf
Compare
Yes. fixed it. |
418d38a
to
b9be789
Compare
b9be789
to
80cbcc5
Compare
Details:
PDPD top_k_v2 spec: https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/topk_cn.html
OpenVINO top_k_v2 spec: https://docs.openvino.ai/latest/openvino_docs_ops_sort_TopK_3.html