I’m trying to port some Matlab code to Python/PyTorch. Matlab uses a struct
data structure that is equivalent to a numpy.recarray
in python. Is there an equivalent data structure in PyTorch? If not, I suppose the best thing to do is use a numpy.recarray
with torch.cuda.FloatTensors
as its elements or just use a python dict.