-
Notifications
You must be signed in to change notification settings - Fork 77
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
is_training=False #6
Comments
Hey, This issue seems peculiar to me. Are you saying is_training=True returns the correct answer but is_training=False returns the wrong one? |
Yes |
I've found that the |
Right, Sorry. I just noticed in tflib.contrib that batch_norm by default doesn't update moving means / averages. I thought it does by default. Check this https://www.tensorflow.org/api_docs/python/tf/contrib/layers/batch_norm |
I encountered the same issue with is_training=False. Not sure if @wh0 get a chance to update the code. |
@mingchen62 I ended up not altering the training process at all. |
All right. According to document, it looks like we will need to update "attention.py" update_ops = tf.get_collection(tf.GraphKeys.UPDATE_OPS) I will give it a try |
Thanks for releasing your pretrained weights checkpoint. I'm trying to use them to run the decompiler. When I set
is_training=False
in the call totflib.network.im2latex_cnn
, it outputs the wrong answer. Any advice on how to run it not in training mode?For example, for
3e679e114e.png
, I get#START \begin{array} { l } & { \scriptscriptstyle } & { \bf } & { \bf } & { \bf } & { \bf } & { \bf } & { \bf } & { \bf } & { \bf } & { \bf } & { \bf } & { \bf } & { \bf } & { \bf } & { \bf } & { \bf } & { \bf } & { \bf } & { \bf } & { \bf } & { \bf } & { \bf } & { \bf } & { \bf } & { \bf } & { \bf } & { \bf } & { \bf } & { \bf } & { \bf } & { \bf } & { \bf } & { \bf } [truncated]
(originally was
#START f _ { ( x , x _ { 0 } ) } ^ { c , L } \equiv f ^ { c } ( x , x _ { 0 } ) #END
)The text was updated successfully, but these errors were encountered: