MCPcopy
hub / github.com/dask/dask / _elemwise_normalize_out

Function _elemwise_normalize_out

dask/array/core.py:5230–5243  ·  view source on GitHub ↗
(out)

Source from the content-addressed store, hash-verified

5228
5229
5230def _elemwise_normalize_out(out):
5231 if isinstance(out, tuple):
5232 if len(out) == 1:
5233 out = out[0]
5234 elif len(out) > 1:
5235 raise NotImplementedError("The out parameter is not fully supported")
5236 else:
5237 out = None
5238 if not (out is None or isinstance(out, Array)):
5239 raise NotImplementedError(
5240 f"The out parameter is not fully supported."
5241 f" Received type {type(out).__name__}, expected Dask Array"
5242 )
5243 return out
5244
5245
5246def handle_out(out, result):

Callers 2

elemwiseFunction · 0.85
handle_outFunction · 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…