Skip to content

Fix FLAGS_fuse_parameter_memory_size unit from Bytes to MBytes. #17924

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

Merged
merged 3 commits into from
Jun 10, 2019

Conversation

gongweibao
Copy link
Contributor

We use MBytes common instead of Bytes.

@gongweibao gongweibao requested a review from chengduoZH June 9, 2019 05:09
@@ -230,15 +228,16 @@ class AllocContinuousSpaceForGradPass : public ir::Pass {
}
VLOG(10) << out.str()
<< ", group size:" << group_grads_params->at(i).size()
<< ", group memory size:" << gps_size;
<< ", group memory size:"
<< static_cast<double>(gps_size) / 1048576.0 << "(MB)";
Copy link
Contributor

Choose a reason for hiding this comment

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

Please don't use 1048576.0 directely.

static double kMB = 1048576.0;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! Will polish later.

@gongweibao gongweibao merged commit 972c54c into PaddlePaddle:develop Jun 10, 2019
@gongweibao gongweibao deleted the fixunit branch June 10, 2019 02:20
Copy link
Contributor

@xsrobin xsrobin left a comment

Choose a reason for hiding this comment

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

LGTM

@luotao1 luotao1 mentioned this pull request Jun 11, 2019
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.

3 participants