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

[NNAdapter] Add unsqueeze_calc_offline_pass for NNAdapter #8259

Merged
merged 1 commit into from
Jan 16, 2022

Conversation

shentanyue
Copy link
Collaborator

No description provided.

@paddle-bot-old
Copy link

Thanks for your contribution!

@shentanyue
Copy link
Collaborator Author

shentanyue commented Jan 12, 2022

包含之前PR:#8166 的遗留comment修复

};

out_t->CopyDataFrom(*input_t);
infer_output_shape(input_shape.data(), output_shape.data());
Copy link
Collaborator

Choose a reason for hiding this comment

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

由于只有一个地方需要计算output shape,可以直接删除lamda 表达式然后在这里展开

Copy link
Collaborator

Choose a reason for hiding this comment

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

下一个PR再改吧

Copy link
Collaborator

@hong19860320 hong19860320 left a comment

Choose a reason for hiding this comment

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

LGTM

@hong19860320 hong19860320 merged commit 5302d25 into PaddlePaddle:develop Jan 16, 2022
@shentanyue shentanyue deleted the add_unsqueeze_pass branch January 17, 2022 07:37
WeiLi233 pushed a commit to WeiLi233/Paddle-Lite that referenced this pull request Mar 29, 2022
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.

None yet

2 participants