mnistDataset works, but it's too buggy