-
Notifications
You must be signed in to change notification settings - Fork 629
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix race condition in the CPU numpy reader (#4848)
- when the last sample in the numpy reader is duplicated due to padding, the reader tries to read the same sample to the same memory, but from different clones of it concurrently. What is more the memory that is read can be allocated and deallocated concurrently. This PR removed this redundant and dangerous work, making sure that each sample is read only once. Signed-off-by: Janusz Lisiecki <[email protected]>
- Loading branch information
Showing
1 changed file
with
18 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters