浏览代码

update the initializer changes

Olivia 8 年之前
父节点
当前提交
0e5cc640fd
共有 1 个文件被更改,包括 2 次插入2 次删除
  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)