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

Function _get_like_function_shapes_chunks

dask/array/creation.py:292–303  ·  view source on GitHub ↗

Helper function for finding shapes and chunks for *_like() array creation functions.

(a, chunks, shape)

Source from the content-addressed store, hash-verified

290
291
292def _get_like_function_shapes_chunks(a, chunks, shape):
293 """
294 Helper function for finding shapes and chunks for *_like()
295 array creation functions.
296 """
297 if shape is None:
298 shape = a.shape
299 if chunks is None:
300 chunks = a.chunks
301 elif chunks is None:
302 chunks = "auto"
303 return shape, chunks
304
305
306def linspace(

Callers 8

empty_likeFunction · 0.90
ones_likeFunction · 0.90
zeros_likeFunction · 0.90
full_likeFunction · 0.90
empty_likeFunction · 0.85
ones_likeFunction · 0.85
zeros_likeFunction · 0.85
full_likeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…