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

Function test_top_literals

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

Source from the content-addressed store, hash-verified

240
241
242def test_top_literals():
243 t = Task("add", add, TaskRef("A"), TaskRef("B"))
244 assert _make_blockwise_graph(
245 t, "z", "ij", "x", "ij", 123, None, numblocks={"x": (2, 2)}, keys=("A", "B")
246 ) == {
247 ("z", 0, 0): Task(("z", 0, 0), add, TaskRef(("x", 0, 0)), DataNode(None, 123)),
248 ("z", 0, 1): Task(("z", 0, 1), add, TaskRef(("x", 0, 1)), DataNode(None, 123)),
249 ("z", 1, 0): Task(("z", 1, 0), add, TaskRef(("x", 1, 0)), DataNode(None, 123)),
250 ("z", 1, 1): Task(("z", 1, 1), add, TaskRef(("x", 1, 1)), DataNode(None, 123)),
251 }
252
253
254def test_blockwise_literals():

Callers

nothing calls this directly

Calls 4

TaskClass · 0.90
TaskRefClass · 0.90
_make_blockwise_graphFunction · 0.90
DataNodeClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…