Yes, you will get the log probabilities with each channel corresponding to the class index.


plt.imshow should work. I would try to transform the output using torch.exp to get the probabilities in the range [0, 1], since the colormap might look more “natural”.