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

Method __dask_optimize__

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

Source from the content-addressed store, hash-verified

961
962 @classmethod
963 def __dask_optimize__(cls, dsk, keys, **kwargs):
964 # Ensure `compute_as_if_collection` don't convert to a low-level task graph
965 assert type(dsk) is HighLevelGraph
966 nonlocal optimized
967 optimized = True
968 return super().__dask_optimize__(dsk, keys, **kwargs)
969
970 result = compute_as_if_collection(
971 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