Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion init2winit/dataset_lib/imagenet_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,12 @@ def load_split(
# entirely to the end of it on the last host, because otherwise we will drop
# the last `{train,valid}_size % split_size` elements.
if jax.process_index() == jax.process_count() - 1:
end = ''
if split in ['train', 'eval_train']:
end = hps.train_size
elif split == 'valid':
end = hps.valid_size
else:
end = hps.test_size

logging.info('Loaded data [%d: %s] from %s', start, str(end), split)
if split in ['train', 'eval_train']:
Expand Down