BlinkDL 3 years ago
parent 3d43eaa1c8
commit 0c7cd08255

@ -189,6 +189,9 @@ class MyDataset(Dataset):
i = np.random.randint(0, self.data_size - req_len)
else:
i = np.random.randint(0, self.data_size)
else:
# cheat: pick a random spot in dataset
i = np.random.randint(0, self.data_size - req_len)
if args.data_type == "binidx":
if args.my_pile_version == 1:

Loading…
Cancel
Save