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

训练与测试的区分 #5

Closed
wangtao1321 opened this issue Oct 4, 2017 · 2 comments
Closed

训练与测试的区分 #5

wangtao1321 opened this issue Oct 4, 2017 · 2 comments

Comments

@wangtao1321
Copy link

wangtao1321 commented Oct 4, 2017

您好!我是tensorflow的新手,我在模型的源码中没有看到对训练和测试过程的区分,例如测试仍旧使用了dropout,请问这个模型中如何设置一个flag使测试时网络结构改变(例如测试时不使用dropout)
ps:我自己想的办法是定义一个全局变量is_train,不过不知道您是否有其他考虑不区分训练和测试

@gaussic
Copy link
Owner

gaussic commented Oct 10, 2017

你好,同新手。对于dropout看来我还是不太理解,我这边修正一下代码重新运行,希望对你会有一定的帮助。

@gaussic
Copy link
Owner

gaussic commented Oct 16, 2017

fixed

@gaussic gaussic closed this as completed Oct 16, 2017
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

No branches or pull requests

2 participants