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 race condition in NemoAsrReader when pad_last_batch is set to True #2828

Merged

Conversation

jantonguirao
Copy link
Contributor

Signed-off-by: Joaquin Anton janton@nvidia.com

Why we need this PR?

Pick one, remove the rest

  • It fixes a bug in NemoAsrReader, when pad_last_batch option is set to True

What happened in this PR?

Fill relevant points, put NA otherwise. Replace anything inside []

  • What solution was applied:
    Detect repeated samples and only decode once
  • Affected modules and functionalities:
    readers.nemo_asr
  • Key points relevant for the review:
    NA
  • Validation and testing:
    Test added
  • Documentation (including examples):
    NA

JIRA TASK: [DALI-1942]

pipe.build()
# Checking that the decoding doesn't fail due to race conditions
for _ in range(10):
outs = pipe.run()
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you check the outs result if you really get the desired number of unique samples, and the right sample is repeated?

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: Joaquin Anton <janton@nvidia.com>
@jantonguirao
Copy link
Contributor Author

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [2221796]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [2221885]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [2221885]: BUILD FAILED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [2221930]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [2221796]: BUILD PASSED

@jantonguirao jantonguirao merged commit 7e64be0 into NVIDIA:master Mar 31, 2021
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.

None yet

4 participants