to_img

hybrid_learning.datasets.data_visualization.to_img(tens)[source]

Transform a (cuda) tensor to a PIL.Image.Image.

Parameters

tens (Tensor) –

Return type

Image