MCPcopy Index your code
hub / github.com/dask/dask / test_elemwise_consistent_names

Function test_elemwise_consistent_names

dask/array/tests/test_array_core.py:2756–2763  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2754
2755
2756def test_elemwise_consistent_names():
2757 a = da.from_array(np.arange(5, dtype="f4"), chunks=(2,))
2758 b = da.from_array(np.arange(5, dtype="f4"), chunks=(2,))
2759 assert same_keys(a + b, a + b)
2760 assert same_keys(a + 2, a + 2)
2761 assert same_keys(da.exp(a), da.exp(a))
2762 assert same_keys(da.exp(a, dtype="f8"), da.exp(a, dtype="f8"))
2763 assert same_keys(da.maximum(a, b), da.maximum(a, b))
2764
2765
2766def test_optimize():

Callers

nothing calls this directly

Calls 2

same_keysFunction · 0.90
arangeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…