the dataset is stored in a Torch7 tensor.