Skip to content
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

deal empty axis #5

Conversation

luo-cheng2021
Copy link
Collaborator

deal empty axis

return node.default_single_output_mapping(
{std::make_shared<ngraph::opset6::Squeeze>(data, axesNode)}, {"Out"});
std::shared_ptr<Node> out;
if (axes.size())
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better use empty than size

@zhangYiIntel zhangYiIntel merged commit cd1bfc0 into zhangYiIntel:yi3/frontend_pdpd_part3 Jul 27, 2021
zhangYiIntel added a commit that referenced this pull request Aug 4, 2021
* [FrontEnd]enable pdpd ops conversion part3

* Add adaptive pool2d op conversion (#1)

* param support tensor (#2)

* add missing sync_batch_norm

* Update pow.cpp

* deal empty axis (#5)

* deal empty axis

* apply review comments

* fix code style

* fix code style

* change shape to i32

* fix code in shape

* fix code style

* fix paddle code style

* remove redandent ops

* fix maxAdativePool

* fix expand_v2

* remove redandent code

Co-authored-by: Mang Guo <[email protected]>
Co-authored-by: Luo Cheng <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants