MCPcopy
hub / github.com/dask/dask / __dask_optimize__

Method __dask_optimize__

dask/tests/test_base.py:974–979  ·  view source on GitHub ↗
(cls, dsk, keys, **kwargs)

Source from the content-addressed store, hash-verified

972
973 @classmethod
974 def __dask_optimize__(cls, dsk, keys, **kwargs):
975 # Ensure `compute_as_if_collection` don't convert to a low-level task graph
976 assert type(dsk) is HighLevelGraph
977 nonlocal optimized
978 optimized = True
979 return super().__dask_optimize__(dsk, keys, **kwargs)
980
981 result = compute_as_if_collection(
982 MyDaskArray, x.__dask_graph__(), x.__dask_keys__()

Callers 10

to_delayedMethod · 0.80
to_dataframeMethod · 0.80
to_delayedMethod · 0.80
test_optimize_fuse_keysFunction · 0.80
_layerMethod · 0.80
test_hash_split_uniqueFunction · 0.80
to_delayedMethod · 0.80
test_turn_off_fusionFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected