Skip to content

[NNAdapter] Add unsqueeze_calc_offline_pass for NNAdapter#8259

Merged
hong19860320 merged 1 commit intoPaddlePaddle:developfrom
shentanyue:add_unsqueeze_pass
Jan 16, 2022
Merged

[NNAdapter] Add unsqueeze_calc_offline_pass for NNAdapter#8259
hong19860320 merged 1 commit intoPaddlePaddle:developfrom
shentanyue:add_unsqueeze_pass

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.

2 participants