Skip to content

Commit ea2cc68

Browse files
committed
Bugfix
1 parent 1b28ee3 commit ea2cc68

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,8 @@ def get_data_set_sizes(fsize, datadir, ishape, oshape, batch_size, ncores=1):
335335
num_train = data_set_size(glob.glob(datadir + 'train' + os.sep + '*.npz'), ishape, oshape, ncores)
336336
num_valid = data_set_size(glob.glob(datadir + 'valid' + os.sep + '*.npz'), ishape, oshape, ncores)
337337
num_test = data_set_size(glob.glob(datadir + 'test' + os.sep + '*.npz'), ishape, oshape, ncores)
338-
np.save(fsize, np.array([num_train, num_valid, num_test], dtype=int))
338+
datsize = np.array([num_train, num_valid, num_test], dtype=int)
339+
np.save(fsize, datsize)
339340

340341
if not num_train:
341342
raise ValueError("No training data provided.\n"+\

0 commit comments

Comments
 (0)