mrpro.utils.summarize_tensorvalues.summarize_tensorvalues
- mrpro.utils.summarize_tensorvalues.summarize_tensorvalues(tensor: Tensor | None, summarization_threshold: int = 7) str [source]
Summarize the values of a tensor to a string.
Returns a string representation of the tensor values. If the tensor is None, the string ‘None’ is returned.
- Parameters:
tensor – The tensor to summarize.
summarization_threshold – The threshold of total array elements triggering summarization.
edgeitems – Number of elements at the beginning and end of each dimension to show.