Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use epoch_size instead of hardcoded values #174

Merged
merged 3 commits into from
Sep 21, 2018
Merged

Use epoch_size instead of hardcoded values #174

merged 3 commits into from
Sep 21, 2018

Conversation

JanuszL
Copy link
Contributor

@JanuszL JanuszL commented Sep 17, 2018

Signed-off-by: Janusz Lisiecki jlisiecki@nvidia.com

Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
Copy link
Member

@szalpal szalpal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

pipes = [pipe_name(batch_size=BATCH_SIZE, num_threads=4, device_id = n, num_gpus = N, data_paths = data_set) for n in range(N)]
[pipe.build() for pipe in pipes]

iters = pipes[0].epoch_size("Reader")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we here check whether all of the iterators report the same size?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise lgtm

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
@JanuszL
Copy link
Contributor Author

JanuszL commented Sep 21, 2018

Works on 35845.

@JanuszL JanuszL merged commit 5b8f04c into NVIDIA:master Sep 21, 2018
pribalta pushed a commit to pribalta/DALI that referenced this pull request Oct 1, 2018
* Use epoch_size instead of hardcoded values

Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>

* Add check iterators size equality for data container test

Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>

* Fix data container test

Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
@JanuszL JanuszL deleted the use_epoch_size branch January 9, 2019 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants