(scale=1.0)
return _initializer
Orthogonal initializer.
Orthogonal initializer.
Orthogonal initializer .
def orthogonal_initializer(scale=1.0):
  """Orthogonal initializer."""
  def _initializer(shape, dtype=tf.float32,
                   partition_info=None):  # pylint: disable=unused-argument
    return tf.constant(orthogonal(shape) * scale, dtype)

  return _initializer
def orthogonal_initializer ( scale = 1.0 ) : def _initializer ( shape , dtype = tf . float32 , partition_info = None ) : # pylint: disable=unused-argument return tf . constant ( orthogonal ( shape ) * scale , dtype ) return _initializer