Skip to content

Remove utils/CommandLineParser.h#989

Merged
reyoung merged 2 commits intoPaddlePaddle:developfrom
gangliao:utils_dep
Dec 22, 2016
Merged

Remove utils/CommandLineParser.h#989
reyoung merged 2 commits intoPaddlePaddle:developfrom
gangliao:utils_dep

Conversation

@gangliao
Copy link
Contributor

@gangliao gangliao commented Dec 22, 2016

@gangliao gangliao mentioned this pull request Dec 22, 2016
35 tasks
}
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

}
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.

}
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.

2 participants