I believe this method might work here:
  
    
    
    How to convert .mat file struct into pytorch Tensors vision
  
  
    I guess you’ve opened the file using scipy.io? 
If so, you should get a dict with all the members and can just load these arrays as numpy arrays. 
Once you have the numpy data, you can transform them to torch.Tensors using torch.from_numpy(). 
Have a look at some examples from the scipy docs on how to load the data.