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

Function dense

docs/source/scripts/scheduling.py:43–53  ·  view source on GitHub ↗

Full barriers between each step

(width, height)

Source from the content-addressed store, hash-verified

41
42
43def dense(width, height):
44 """Full barriers between each step"""
45 d = {("x", 0, i): i for i in range(width)}
46 for j in range(1, height):
47 d.update(
48 {
49 ("x", j, i): (noop, [("x", j - 1, k) for k in range(width)])
50 for i in range(width)
51 }
52 )
53 return d, [("x", height - 1, i) for i in range(width)]
54
55
56import numpy as np

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected