matplotlib.pyplot.imshow expects a numpy array as [height, width, channels], so you would have to permute the transformed tensor and transform it back to a numpy array via:
x = trans(imgr)
x = x.permute(1, 2, 0).numpy()
plt.imshow(x)