Package qttorch declares two functions that convert torch.Tensor to QImage and vice-versa.
qttorch
torch.Tensor
QImage
Loading this package automatically loads packages torch and qt.
torch
qt