torch / torch7

http://torch.ch
Other
8.97k stars 2.38k forks source link

Loading large mat files in torch #1132

Open arnaghosh opened 6 years ago

arnaghosh commented 6 years ago

Hello, I was trying to load a large .mat file from disk (about 5GB) to torch using matio. However, I see that although the loaded matrix has the correct size, it has zeros in most of the last dimensions. The way I figured out the problem was by checking the means of the data file in Matlab and torch. In matlab the mean is "-12.41" whereas the mean is torch comes to be "-8.016". I do Tensor:contiguous() before checking the means or any other processing. Could somebody suggest a way to circumvent the problem? Thanks