Skip to content

Conversation

@Xreki
Copy link
Contributor

@Xreki Xreki commented Mar 6, 2018

Fix #8785

Copy link
Contributor

@kuke kuke left a comment

Choose a reason for hiding this comment

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

Almost LGTM. And can you add log info for usage 1 and usage 2?

while (counter != i * 1000) counter++;
{
std::string nested_name = "nested_ano_evs_op_" + std::to_string(i);
LOG(INFO) << nested_name;
Copy link
Contributor

Choose a reason for hiding this comment

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

Can remove this line and line 120 for clean output.

Copy link
Contributor Author

@Xreki Xreki Mar 6, 2018

Choose a reason for hiding this comment

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

Oh, sorry, I forgot that ...

std::string name = "ano_evs_op_" + std::to_string(i);
RecordEvent record_event(name, dev_ctx);
int counter = 1;
while (counter != i * 1000) counter++;
Copy link
Contributor

Choose a reason for hiding this comment

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

reduce the count in while?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

Copy link
Contributor

@kuke kuke left a comment

Choose a reason for hiding this comment

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

LGTM

@Xreki Xreki merged commit fecc9a3 into PaddlePaddle:develop Mar 8, 2018
@Xreki Xreki deleted the core_add_nested_record_event_test branch November 14, 2018 02:24
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