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

add config_parser in trainer_config_helpers to seperate trainer config #1

Conversation

jacquesqiao
Copy link
Collaborator

写了一个初步版本,看看是否符合你的预期。

Copy link
Owner

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

另外,麻烦update一下。

git pull yy_remote feature/mnist_train_api  # yy_remote可能得换成本地设置的remote

@@ -0,0 +1,38 @@
# Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved
Copy link
Owner

Choose a reason for hiding this comment

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

换一个文件名吧?这个文件名感觉已经被使用过了。

类似于config_parser_utils.py就好了



def parse_network_config(network_conf):
config = config_parser.parse_config(network_conf, '')
Copy link
Owner

Choose a reason for hiding this comment

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

这个config_arg_str还是给暴露出来吧。可以把默认参数设置成''。即

def parse_network_config(network_conf, config_arg_str=None):
    if config_arg_str is None:
        config_arg_str = ''
    ...

这个参数比较有用。



def parse_optimizer_config(optimizer_conf):
config = config_parser.parse_config(optimizer_conf, '')
Copy link
Owner

Choose a reason for hiding this comment

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

同上

@jacquesqiao
Copy link
Collaborator Author

我自己的分支更新了,如果反馈到这里来

@reyoung
Copy link
Owner

reyoung commented Dec 22, 2016

@jacquesqiao 似乎是rebase过版本,导致修改的版本太多了。。

我直接从你的repo里面,cherry pick修改的版本吧。

@reyoung
Copy link
Owner

reyoung commented Dec 22, 2016

@jacquesqiao 我已经手动加到这个分支里了。这个PR就先关了。

PaddlePaddle#971

@reyoung reyoung closed this Dec 22, 2016
reyoung pushed a commit that referenced this pull request Dec 28, 2016
reyoung pushed a commit that referenced this pull request Jan 3, 2017
Rephrase the first paragraph
reyoung pushed a commit that referenced this pull request Mar 21, 2017
reyoung pushed a commit that referenced this pull request Sep 6, 2017
Invoke check_grad many times for no_grad_set
reyoung pushed a commit that referenced this pull request Sep 16, 2017
reyoung pushed a commit that referenced this pull request Sep 19, 2017
reyoung pushed a commit that referenced this pull request Oct 16, 2017
reyoung pushed a commit that referenced this pull request Nov 27, 2017
reyoung pushed a commit that referenced this pull request Dec 4, 2017
reyoung pushed a commit that referenced this pull request May 17, 2018
reyoung pushed a commit that referenced this pull request Jun 8, 2018
reyoung pushed a commit that referenced this pull request Jul 10, 2018
reyoung pushed a commit that referenced this pull request Sep 30, 2018
reyoung pushed a commit that referenced this pull request Dec 21, 2018
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.