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

Function shape

dask/array/core.py:5451–5455  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

5449 dim = 0
5450
5451 def shape(x):
5452 try:
5453 return x.shape or (1,)
5454 except AttributeError:
5455 return (1,)
5456
5457 while isinstance(arrays, (list, tuple)):
5458 result.append(tuple(shape(deepfirst(a))[dim] for a in arrays))

Callers 1

chunks_from_arraysFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…