Skip to content

Missing sharding support in TENSORFLOW mode with Datasets? #227

@winston-zillow

Description

@winston-zillow

In the mnist_dist.py example, we have

ds = tf.data.TextLineDataset(files).map(parse_fn).batch(args.batch_size)

There is no shard(num_workers, worker_index) before the batching. I think that would mean all workers will be reading the same training data?

Though in order to invoke shard() the node needs to know the total number of workers through the context passing to the map function.

(I can provide a PR, though I want to see if this is indeed an issue.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions