deepr.utils.make_same_shape

deepr.utils.make_same_shape(tensors, broadcast=True)[source]

Make list of tensors the same shape

Parameters:
  • tensors (List[tf.Tensor]) – List of tensors

  • broadcast (bool, optional) – If True, not only add missing dims, also broadcast

Returns:

Return type:

List[tf.Tensor]