MCPcopy Index your code
hub / github.com/Project-MONAI/MONAI / __str__

Method __str__

monai/data/meta_tensor.py:591–597  ·  view source on GitHub ↗

Prints a representation of the tensor. Prepends "meta" to ``torch.Tensor.__str__``. Use ``print_verbose`` for associated metadata.

(self)

Source from the content-addressed store, hash-verified

589 return f"meta{self.as_tensor().__repr__()}"
590
591 def __str__(self):
592 """
593 Prints a representation of the tensor.
594 Prepends "meta" to ``torch.Tensor.__str__``.
595 Use ``print_verbose`` for associated metadata.
596 """
597 return f"meta{str(self.as_tensor())}"
598
599 def __format__(self, format_spec):
600 """

Callers

nothing calls this directly

Calls 1

as_tensorMethod · 0.95

Tested by

no test coverage detected