LDJA commited on
Commit
dd54945
1 Parent(s): e522e31
app/data/shakespeare_char/prepare.py CHANGED
@@ -65,8 +65,8 @@ val_ids = np.array(val_ids, dtype=np.uint16)
65
  # os.chmod(file_path_train, permissions)
66
  # os.chmod(file_path_val, permissions)
67
 
68
- train_ids.tofile(os.path.join(os.path.dirname(__file__), 'train.bin'), dtype=np.uint16, mode='r')
69
- val_ids.tofile(os.path.join(os.path.dirname(__file__), 'val.bin'), dtype=np.uint16, mode='r')
70
 
71
  # save the meta information as well, to help us encode/decode later
72
  meta = {
 
65
  # os.chmod(file_path_train, permissions)
66
  # os.chmod(file_path_val, permissions)
67
 
68
+ train_ids.tofile(os.path.join(os.path.dirname(__file__), 'train.bin'), mode='r')
69
+ val_ids.tofile(os.path.join(os.path.dirname(__file__), 'val.bin'), mode='r')
70
 
71
  # save the meta information as well, to help us encode/decode later
72
  meta = {