You could check both implementations and compare the used paths in them.
matplotlib.pyplot.imsave 2 seems to deploy to different methods based on the specified format etc. while the torchvision.utils.save_image 3 method normalizes the image to [0, 255].