Fixed typo in deconvolution initializations
@@ -17,7 +17,7 @@ SUPPORTED_PADDING = {'SAME', 'VALID'}
def default_w_initializer():
def _initializer(shape, dtype, partition_info):
- stddev = np.sqrt(2.0 / np.prod(shape[:-2]) * shape[-1])
+ stddev = np.sqrt(2.0 / (np.prod(shape[:-2]) * shape[-1]))
from tensorflow.python.ops import random_ops
return random_ops.truncated_normal(shape, 0.0, stddev, dtype=tf.float32)
# return tf.truncated_normal_initializer(
