mrpro.utils.summarize_object
- mrpro.utils.summarize_object(obj: object) str [source]
Summarize object to a human readable representation.
- Parameters:
obj (
object
) –The object to summarize. This method has special cases:
For sequences of numeric values and tensors, a summary of shape and value is returned. If __shortstr__ is implemented, it is used. For torch.nn.Modules, only the name is used. For other objects, obj.__str__() will be used.
- Returns:
The string summary/short representation.