Skip to content

Commit

Permalink
Explicity set the shuffle_buffer_size parameter to address meta-datas…
Browse files Browse the repository at this point in the history
  • Loading branch information
jfb54 committed Dec 29, 2020
1 parent 7671893 commit 91a0414
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions learners/cnaps/src/meta_dataset_reader.py
Expand Up @@ -85,7 +85,8 @@ def _init_single_source_dataset(self, dataset_name, split, episode_description):
use_bilevel_ontology=use_bilevel_ontology,
split=split,
episode_descr_config=episode_description,
image_size=84)
image_size=84,
shuffle_buffer_size=1000)

iterator = single_source_pipeline.make_one_shot_iterator()
return iterator.get_next()
Expand Down Expand Up @@ -174,7 +175,8 @@ def _init_dataset(self, dataset, split, episode_description):
use_bilevel_ontology=False,
split=split,
episode_descr_config=episode_description,
image_size=84)
image_size=84,
shuffle_buffer_size=1000)

iterator = single_source_pipeline.make_one_shot_iterator()
return iterator.get_next()
Expand Down

0 comments on commit 91a0414

Please sign in to comment.