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

关于run_rnn里的train函数 #119

Open
AhaYujie opened this issue May 19, 2019 · 1 comment
Open

关于run_rnn里的train函数 #119

AhaYujie opened this issue May 19, 2019 · 1 comment

Comments

@AhaYujie
Copy link

loss_train, acc_train = session.run([model.loss, model.acc], feed_dict=feed_dict)
这句代码放在
session.run(model.optim, feed_dict=feed_dict) # 运行优化
这句代码的前面,如果执行了if total_batch % config.print_per_batch == 0:里的代码,那么运行优化步骤的dropout就变成了1.0了不是吗?

@gaussic
Copy link
Owner

gaussic commented May 19, 2019

😄 恭喜你发现了代码的一点小 bug,我这边修复一下,这个 bug 会影响到一个 batch 的训练,对整体的结果影响不大。

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