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

bugfix/fix mode match #134

Merged
merged 3 commits into from
Jan 14, 2018

Conversation

Superjomn
Copy link
Contributor

@Superjomn Superjomn commented Jan 14, 2018

fixs: #128

@@ -78,7 +78,8 @@ std::string LogReader::GenReadableTag(const std::string& mode,

bool LogReader::TagMatchMode(const std::string& tag, const std::string& mode) {
if (tag.size() <= mode.size()) return false;
return tag.substr(0, mode.size()) == mode;
return tag.substr(0, mode.size()) == mode &&
Copy link
Member

Choose a reason for hiding this comment

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

tag mode caption之间是什么关系?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

  • mode 类似 train/test/valid
  • tag 就是组件的标志(key)
  • caption 是组件的名字,不设置则=tag

Copy link
Member

@jacquesqiao jacquesqiao left a comment

Choose a reason for hiding this comment

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

LGTM, the question does not block merge

@Superjomn Superjomn merged commit 346b64e into PaddlePaddle:develop Jan 14, 2018
@Superjomn Superjomn deleted the bugfix/mode_prefix_match branch January 14, 2018 13:37
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