You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 1, 2021. It is now read-only.
If you use a Python bool, the value of training won't change because you already build the logits before the session and you can't change the graph during the session.
The correct way should use tf.placeholder like this: self.training = tf.placeholder(tf.bool, name='is_train')
And set sess.run(init, feed_dict={self.is_training: True}) when trainingand sess.run(init, feed_dict={self.is_training: False}) when evalating
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
If you use a Python bool, the value of training won't change because you already build the logits before the session and you can't change the graph during the session.
The correct way should use tf.placeholder like this:
self.training = tf.placeholder(tf.bool, name='is_train')
And set
sess.run(init, feed_dict={self.is_training: True})
when trainingandsess.run(init, feed_dict={self.is_training: False})
when evalatingThe text was updated successfully, but these errors were encountered: