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
Cache size propagete to libdeeplake. #2607
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #2607 +/- ##
==========================================
- Coverage 83.99% 83.40% -0.60%
==========================================
Files 224 224
Lines 24674 24677 +3
==========================================
- Hits 20726 20582 -144
- Misses 3948 4095 +147
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
The formatter needs to be ran on this |
@@ -212,6 +213,9 @@ def dataset_to_libdeeplake(hub2_dataset: Dataset): | |||
libdeeplake_dataset = hub2_dataset.libdeeplake_dataset | |||
|
|||
assert libdeeplake_dataset is not None | |||
libdeeplake_dataset._max_cache_size = max( | |||
hub2_dataset.storage.cache_size * MB, libdeeplake_dataset._max_cache_size |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dataset.storage.cache_size
is already in bytes
Kudos, SonarCloud Quality Gate passed! |
🚀 🚀 Pull Request
Impact
Description
Pass cache size to the indra.
Things to be aware of
Things to worry about
Additional Context