Hi,
I guess you can use tools like https://docs.scipy.org/doc/scipy/reference/generated/scipy.io.loadmat.html 43 to load the mat file into a numpy array and then move that to pytorch (copyless) with torch.from_numpy(your_array).