now_2023.plotting.plot_tensor

now_2023.plotting.plot_tensor(tensor: Path | Tensor, cut_coords: tuple[int, int, int], title: str | None = None)[source]

Plot a tensor image.

Parameters:
  • tensor (Path ot torch.Tensor) – The tensor image to be displayed. This can be a path to a “.pt” tensor file, or a torch.Tensor object.

  • cut_coords (tuple of three ints) – The coordinates of the slice to be displayed.

  • title (str, optional) – The title of the plot.