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

feat: reduce memory footprint #55

Merged
merged 9 commits into from
Jan 30, 2024
Merged

Conversation

tilman151
Copy link
Owner

No description provided.

Windowing can now unload results to a memmap on disk. The tensor conversions now use as_tensor that avoids copying numpy arrays if possible.
Concatenating the runs is memory intensive and can be avoided by putting them into a custom dataset instead of a TensorDataset.
This enables using occult Numpy arrays to hold data, e.g., `lib.stride_tricks.sliding_window_view` which can lower memory consumption.
@tilman151 tilman151 merged commit ac70405 into master Jan 30, 2024
5 checks passed
@tilman151 tilman151 deleted the feat/reduce-memory-footprint branch January 30, 2024 15:43
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.

1 participant