-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: reduce memory footprint of windowing and tensor conversion Windowing can now unload results to a memmap on disk. The tensor conversions now use as_tensor that avoids copying numpy arrays if possible. * refactor: avoid concatenating runs by using custom dataset Concatenating the runs is memory intensive and can be avoided by putting them into a custom dataset instead of a TensorDataset. * fix: make RulDataset more robust * refactor: cleanup windowing code * feat: convert data to tensor only when leaving dataset This enables using occult Numpy arrays to hold data, e.g., `lib.stride_tricks.sliding_window_view` which can lower memory consumption. * fix: linting issues * refactor: avoid unnecessary copies * feat: add flag to force copy tensors * fix: linting issues
- Loading branch information
Showing
9 changed files
with
305 additions
and
185 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
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.