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

Function shape

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

Source from the content-addressed store, hash-verified

5444 dim = 0
5445
5446 def shape(x):
5447 try:
5448 return x.shape or (1,)
5449 except AttributeError:
5450 return (1,)
5451
5452 while isinstance(arrays, (list, tuple)):
5453 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