tensorflow_probability/python/distributions/lkj.py
def _replicate(n, tensor):
  """Replicate the input tensor n times along a new (major) dimension."""
  # TODO(axch) Does this already exist somewhere?  Should it get contributed?
  multiples = tf.concat([[n], tf.ones_like(tensor.shape)], axis=0)
  return tf.tile(tf.expand_dims(tensor, axis=0), multiples)
def _replicate(n, tensor):
  """Replicate the input tensor n times along a new (major) dimension."""
  # TODO(axch) Does this already exist somewhere?  Should it get contributed?
  multiples = tf.concat([[n], tf.ones_like(tensor.shape)], axis=0)
  return tf.tile(tf.expand_dims(tensor, axis=0), multiples)
def _replicate ( n , tensor ) : # TODO(axch) Does this already exist somewhere?  Should it get contributed? multiples = tf . concat ( [ [ n ] , tf . ones_like ( tensor . shape ) ] , axis = 0 ) return tf . tile ( tf . expand_dims ( tensor , axis = 0 ) , multiples )
Replicate the input tensor n times along a new (major) dimension.
Replicate the input tensor n times along a new ( major ) dimension .