forked from NVIDIA/DALI
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bugs in C API and refactor tests (NVIDIA#3350)
Fix `daliDeserializeDefault` - the batch size map was not allocated and when the pipeline handle was correctly cleaned, it tried to deallocate memory under invalid pointer. Add missing `daliDeletePipeline` in all C API tests so the tests no longer leak the created pipeline. Some tests (daliOutputCopySamples) used to fill the prefetch queue and schedule additional runs, whilst accessing only one output iteration. The not-freed pipeline could be actively using the memory when the memory resources were cleared on shutdown and the whole test process could crash during shutdown. Remove the additional unused iteration in such case. Rework tests to not use access to underlying contiguous buffer of TensorList. Signed-off-by: Krzysztof Lecki <klecki@nvidia.com>
- Loading branch information
Showing
3 changed files
with
126 additions
and
79 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
Oops, something went wrong.