Просмотр исходного кода

Update GraphKeys.VARIABLES to GraphKeys.GLOBAL_VARIABLES.

Christopher Shallue 9 лет назад
Родитель
Сommit
946c75e5b5
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      im2txt/im2txt/show_and_tell_model.py

+ 1 - 1
im2txt/im2txt/show_and_tell_model.py

@@ -343,7 +343,7 @@ class ShowAndTellModel(object):
         initial_value=0,
         name="global_step",
         trainable=False,
-        collections=[tf.GraphKeys.GLOBAL_STEP, tf.GraphKeys.VARIABLES])
+        collections=[tf.GraphKeys.GLOBAL_STEP, tf.GraphKeys.GLOBAL_VARIABLES])
 
     self.global_step = global_step