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

Fix YOLO v4 example non-fatal teardown error #3739

Merged
merged 1 commit into from
Mar 16, 2022

Conversation

JanuszL
Copy link
Contributor

@JanuszL JanuszL commented Mar 16, 2022

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

Category:

Bug fix (non-breaking change which fixes an issue)

Description:

Additional information:

Affected modules and functionalities:,

  • YOLO v4 example

Key points relevant for the review:

  • NA

Checklist

Tests

  • Existing tests apply
  • New tests added
    • Python tests
    • GTests
    • Benchmark
    • Other
  • N/A

Documentation

  • Existing documentation applies
  • Documentation updated
    • Docstring
    • Doxygen
    • RST
    • Jupyter
    • Other
  • N/A

DALI team only

Requirements

  • Implements new requirements
  • Affects existing requirements
  • N/A

REQ IDs: N/A

JIRA TASK: DALI-2338

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

- fixes lack of multiprocess thread pool teardown in
  TF Mirrored strategy as stated in tensorflow/tensorflow#50487

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

JanuszL commented Mar 16, 2022

!build

@@ -114,6 +112,7 @@ def dataset_fn(input_context):

multigpu = kwargs.get("multigpu")
strategy = tf.distribute.MirroredStrategy() if multigpu else tf.distribute.get_strategy()
atexit.register(strategy._extended._collective_ops._pool.close) # type: ignore
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the fix.

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [4161314]: BUILD STARTED

@JanuszL JanuszL changed the title Fix Yolo v4 example non-fatal teardown error Fix YOLO v4 example non-fatal teardown error Mar 16, 2022
@dali-automaton
Copy link
Collaborator

CI MESSAGE: [4161314]: BUILD PASSED

@JanuszL JanuszL merged commit ea28b54 into NVIDIA:main Mar 16, 2022
@JanuszL JanuszL deleted the fix_yolo_example branch March 16, 2022 13:10
cyyever pushed a commit to cyyever/DALI that referenced this pull request May 13, 2022
- fixes lack of multiprocess thread pool teardown in
  TF Mirrored strategy as stated in tensorflow/tensorflow#50487

Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
cyyever pushed a commit to cyyever/DALI that referenced this pull request Jun 7, 2022
- fixes lack of multiprocess thread pool teardown in
  TF Mirrored strategy as stated in tensorflow/tensorflow#50487

Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
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.

4 participants