Skip to content

Conversation

chenjiaoAngel
Copy link
Collaborator

当输入shape不改变时,prior box的输出直接copy上次结果;否则重新计算输出
原因:prior box的输出结果与输入shape和参数相关

[operator] add InferShapeImpl method (PaddlePaddle#3294)

void PriorBoxCompute::Run() {
auto& param = Param<operators::PriorBoxParam>();
inline void* fast_malloc(size_t size) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

这个可以的,我稍后改过来

void PriorBoxCompute::Run() {
auto& param = Param<operators::PriorBoxParam>();
inline void fast_free(void* ptr) {
if (ptr) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

这个也可以删除哈

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

@chenjiaoAngel chenjiaoAngel merged commit 98e6958 into PaddlePaddle:develop Jul 30, 2020
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