MCPcopy
hub / github.com/dask/dask / normalize_ufunc

Function normalize_ufunc

dask/tokenize.py:471–480  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 2

_normalize_pickleFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…