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

Remove utils/CommandLineParser.h #989

Merged
merged 2 commits into from
Dec 22, 2016
Merged

Conversation

gangliao
Copy link
Contributor

@gangliao gangliao commented Dec 22, 2016

@gangliao gangliao mentioned this pull request Dec 22, 2016
35 tasks
@@ -152,7 +152,7 @@ void initMain(int argc, char** argv) {
line += ' ';
}
LOG(INFO) << "commandline: " << line;
ParseCommandLineFlags(&argc, argv, true);
gflags::ParseCommandLineFlags(&argc, &argv, true);
Copy link
Collaborator

Choose a reason for hiding this comment

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

有个bug,gflags的namespace不一定是gflags。
gflags的不同版本里面有区别。这个namespace有的时候是google,有的时候是gflags

paddle/utils/CommandLineParser.cpp 这里有对namespace的特殊性进行处理。。

不过,如果我们依赖确定某个版本的gflags就没这个问题了。。。

Copy link
Contributor Author

Choose a reason for hiding this comment

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

我之前也check了一下,应该是老版有这个问题

# First try the (older) google namespace. Note that the output variable

@@ -152,6 +152,11 @@ void initMain(int argc, char** argv) {
line += ' ';
}
LOG(INFO) << "commandline: " << line;

#ifndef GFLAGS_GFLAGS_H_
Copy link
Contributor Author

Choose a reason for hiding this comment

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

后期可以移到common.h

Copy link
Collaborator

Choose a reason for hiding this comment

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

Excellent.

Copy link
Collaborator

@reyoung reyoung left a comment

Choose a reason for hiding this comment

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

LGTM.

@@ -152,6 +152,11 @@ void initMain(int argc, char** argv) {
line += ' ';
}
LOG(INFO) << "commandline: " << line;

#ifndef GFLAGS_GFLAGS_H_
Copy link
Collaborator

Choose a reason for hiding this comment

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

Excellent.

@reyoung reyoung merged commit 2016f92 into PaddlePaddle:develop Dec 22, 2016
@gangliao gangliao deleted the utils_dep branch March 22, 2017 03:01
wangxicoding pushed a commit to wangxicoding/Paddle that referenced this pull request Dec 9, 2021
* add bart

* add unimo

* add roberta

* add roformer

* modify transformer-rst
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.

None yet

2 participants