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

关于batch normalization层 #18

Open
huyi1989 opened this issue Apr 24, 2018 · 1 comment
Open

关于batch normalization层 #18

huyi1989 opened this issue Apr 24, 2018 · 1 comment

Comments

@huyi1989
Copy link

如果想要保存跟新moving_mean和moving_variance的话,好像要写以下代码:
extra_update_ops = tf.get_collection(tf.GraphKeys.UPDATE_OPS)
with tf.control_dependencies(extra_update_ops):
train_op = optimizer.minimize(loss)
但是好像没找到相关内容,想问作者是不是漏了写了?

@watsonyanghx
Copy link
Owner

这里设置了updates_collections=None,可以看一下tf.contrib.layers.batch_norm

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