-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Recursive tokenization #3515
Recursive tokenization #3515
Changes from all commits
c1b8d4a
25b655d
4f395b6
d2f8b5d
7f47b45
c311725
36ad4f7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -856,6 +856,10 @@ def test_dask_token(): | |
import dask | ||
|
||
s = sparse.COO.from_numpy(np.array([0, 0, 1, 2])) | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. xfail this instead? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah that was an option. But it would have completely disabled the test, and the test is really about not accidentally invoking |
||
# https://github.com/pydata/sparse/issues/300 | ||
s.__dask_tokenize__ = lambda: dask.base.normalize_token(s.__dict__) | ||
|
||
a = DataArray(s) | ||
t1 = dask.base.tokenize(a) | ||
t2 = dask.base.tokenize(a) | ||
|
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.
Just so I'm clear, these are two different (but equal) xarray objects, so we don't want dask to think that they are the same?
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.
They aren't equal. da_b[5000] == 2, while da_a[5000] == 1.