def create_weight_initializer(fan_in_shape):
 stddev = (1 / math.sqrt(np.prod(fan_in_shape)))
 return tf.truncated_normal_initializer(stddev=stddev)

def create_weight_initializer ( fan_in_shape ) : stddev = ( 1 / math . sqrt ( np . prod ( fan_in_shape ) ) ) return tf . truncated_normal_initializer ( stddev = stddev )
returns a default initializer for the weights of a convolutional module .