I’m not sure, what causes this error in these old versions, but you should be able to transform the tensor to a numpy array, permute its dimensions to [height, width, channels] and use matplotlib.pyplot.imshow to visualize the image.