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

[fleet_execurot] add flag to control timer #39241

Merged
merged 1 commit into from
Jan 27, 2022

Conversation

FeixLiu
Copy link
Contributor

@FeixLiu FeixLiu commented Jan 26, 2022

PR types

Others

PR changes

Others

Describe

add flag to control timer,
the io will take a lot time if timer is in VLOG(3).

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

Copy link
Contributor

@wangxicoding wangxicoding left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -611,27 +611,43 @@ bool DistModel::Run(const std::vector<DistModelTensor> &input_data,

DistModelTimer timer;
timer.tic();
double feed_elapse;
double fleet_exe_elapse;
double fetch_elapse;
Copy link
Contributor

Choose a reason for hiding this comment

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

后面可以把这个功能做进timer里面的,toc_and_reset

@wangxicoding wangxicoding merged commit d6d745d into PaddlePaddle:develop Jan 27, 2022
@FeixLiu FeixLiu deleted the update_timer branch January 27, 2022 03:39
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