Bläddra i källkod

Merge pull request #927 from tensorflow/itsmeolivia-patch-1

update the initializer changes from december
Olivia 8 år sedan
förälder
incheckning
72d074bcf4
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      inception/inception/slim/ops.py

+ 2 - 2
inception/inception/slim/ops.py

@@ -85,7 +85,7 @@ def batch_norm(inputs,
     if center:
     if center:
       beta = variables.variable('beta',
       beta = variables.variable('beta',
                                 params_shape,
                                 params_shape,
-                                initializer=tf.zeros_initializer,
+                                initializer=tf.zeros_initializer(),
                                 trainable=trainable,
                                 trainable=trainable,
                                 restore=restore)
                                 restore=restore)
     if scale:
     if scale:
@@ -99,7 +99,7 @@ def batch_norm(inputs,
     moving_collections = [moving_vars, tf.GraphKeys.MOVING_AVERAGE_VARIABLES]
     moving_collections = [moving_vars, tf.GraphKeys.MOVING_AVERAGE_VARIABLES]
     moving_mean = variables.variable('moving_mean',
     moving_mean = variables.variable('moving_mean',
                                      params_shape,
                                      params_shape,
-                                     initializer=tf.zeros_initializer,
+                                     initializer=tf.zeros_initializer(),
                                      trainable=False,
                                      trainable=False,
                                      restore=restore,
                                      restore=restore,
                                      collections=moving_collections)
                                      collections=moving_collections)