Why does torch.from_numpy require a different byte ordering while matplotlib doesn't? – CentOS
Here is a piece of code (running on Linux CentOS 7.7.1908, x86_64) import torch #v1.3.0 import numpy as np #v1.14.3 import matplotlib.pyplot as plt from astropy.io.fits import getdata #v3.0.2 data, hdr = getdata("afile.fits", 0, header=True) #gives dtype=float32 2d array plt.imshow(data)…