Quellcode durchsuchen

update the initializer changes

Olivia vor 8 Jahren
Ursprung
Commit
0e5cc640fd
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  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:
       beta = variables.variable('beta',
                                 params_shape,
-                                initializer=tf.zeros_initializer,
+                                initializer=tf.zeros_initializer(),
                                 trainable=trainable,
                                 restore=restore)
     if scale:
@@ -99,7 +99,7 @@ def batch_norm(inputs,
     moving_collections = [moving_vars, tf.GraphKeys.MOVING_AVERAGE_VARIABLES]
     moving_mean = variables.variable('moving_mean',
                                      params_shape,
-                                     initializer=tf.zeros_initializer,
+                                     initializer=tf.zeros_initializer(),
                                      trainable=False,
                                      restore=restore,
                                      collections=moving_collections)