def _broadcast(value, target):
return tf.broadcast_to(<EOL>tf.convert_to_tensor(value=value, dtype=target.dtype),<EOL>distribution_util.prefer_static_shape(target)[:-<NUM_LIT:1>])<EOL>
Broadcast a value to match the batching dimensions of a target.

    If necessary the value is converted into a tensor. Both value and target
    should be of the same dtype.

    Args:
      value: A value to broadcast.
      target: A `Tensor` of shape [b1, ..., bn, d].

    Returns:
      A `Tensor` of shape [b1, ..., bn] and same dtype as the target.