MCPcopy Create free account
hub / github.com/dask/dask / optimize_double

Function optimize_double

dask/tests/test_base.py:823–827  ·  view source on GitHub ↗
(dsk, keys)

Source from the content-addressed store, hash-verified

821 x = da.ones(10, chunks=(5,))
822
823 def optimize_double(dsk, keys):
824 return {
825 k: (mul, 2, v) if not key_split(k).startswith("finalize") else v
826 for k, v in dsk.items()
827 }
828
829 from dask.array.utils import assert_eq
830

Callers

nothing calls this directly

Calls 2

key_splitFunction · 0.90
itemsMethod · 0.45

Tested by

no test coverage detected