(func)
| 469 | |
| 470 | @normalize_token.register(np.ufunc) |
| 471 | def normalize_ufunc(func): |
| 472 | try: |
| 473 | return _normalize_pickle(func) |
| 474 | except Exception: |
| 475 | _maybe_raise_nondeterministic( |
| 476 | f"Cannot tokenize numpy ufunc {func!r}. Please use functions " |
| 477 | "of the dask.array.ufunc module instead. See also " |
| 478 | "https://docs.dask.org/en/latest/array-numpy-compatibility.html" |
| 479 | ) |
| 480 | return uuid.uuid4().hex |
| 481 | |
| 482 | @normalize_token.register(np.dtype) |
| 483 | def normalize_dtype(dtype): |
nothing calls this directly
no test coverage detected
searching dependent graphs…