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

Function optimize_double

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

Source from the content-addressed store, hash-verified

832 x = da.ones(10, chunks=(5,))
833
834 def optimize_double(dsk, keys):
835 return {
836 k: (mul, 2, v) if not key_split(k).startswith("finalize") else v
837 for k, v in dsk.items()
838 }
839
840 from dask.array.utils import assert_eq
841

Callers

nothing calls this directly

Calls 2

key_splitFunction · 0.90
itemsMethod · 0.45

Tested by

no test coverage detected