I can load a tensor from file like this:
X = torch.load(filename)
This tensor has a shape torch.Size([30000000]).
But I can’t load dataset fully due to memory limits.
How can I load only first 3000 numbers from file?
And then second portion of 3000 numbers without full load?