-
Notifications
You must be signed in to change notification settings - Fork 632
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
Rewrite query #1415
Rewrite query #1415
Conversation
return r | ||
|
||
|
||
def _get_np(dataset: Dataset, block: IOBlock) -> NP_ACCESS: |
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.
Lazy loading of tensor.numpy()
hub/core/query/filter.py
Outdated
index_map: List[int] | ||
|
||
if num_workers > 0: | ||
index_map = query_inplace(dataset, query, progressbar) |
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.
A stub for now.
Codecov Report
@@ Coverage Diff @@
## main #1415 +/- ##
==========================================
- Coverage 92.33% 92.06% -0.27%
==========================================
Files 175 175
Lines 14111 14043 -68
==========================================
- Hits 13029 12929 -100
- Misses 1082 1114 +32
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Co-authored-by: [email protected] <[email protected]>
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.
Did we drop support for tensor_functions
, groups
, json
etc. since unit tests are removed?
Tests was removed as they are not compatible with never version of query and have to be rewritten. |
finally: | ||
bar.close() | ||
else: | ||
return DatasetQuery(dataset, query).execute() |
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.
restrict the scope of the query and also make sure .compile is called beforehand not on every eval
No description provided.