Skip to content

Commit

Permalink
Make reader respect shard_id pipeline argument in tf.data.Dataset wit…
Browse files Browse the repository at this point in the history
…h multiple GPUs example (#1850)

Signed-off-by: Janusz Lisiecki <[email protected]>
  • Loading branch information
JanuszL authored Apr 3, 2020
1 parent 571ba4d commit 03ecab0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
" super(MnistPipeline, self).__init__(\n",
" batch_size, num_threads, device_id, seed)\n",
" self.reader = ops.Caffe2Reader(\n",
" path=data_path, random_shuffle=True, shard_id=0, num_shards=num_shards)\n",
" path=data_path, random_shuffle=True, shard_id=shard_id, num_shards=num_shards)\n",
" self.decode = ops.ImageDecoder(\n",
" device='mixed',\n",
" output_type=types.GRAY)\n",
Expand Down

0 comments on commit 03ecab0

Please sign in to comment.