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

Function _valid_depth

dask/layers.py:304–308  ·  view source on GitHub ↗
(depth)

Source from the content-addressed store, hash-verified

302 shape.append(num)
303
304 def _valid_depth(depth):
305 if isinstance(depth, tuple):
306 return any(x != 0 for x in depth)
307 else:
308 return depth != 0
309
310 args = [
311 inds(i, ind, axes.get(i, 0)) if _valid_depth(axes.get(i, 0)) else [ind]

Callers 1

Calls 1

anyFunction · 0.85

Tested by

no test coverage detected