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

Method to_backend

dask/array/core.py:1860–1875  ·  view source on GitHub ↗

Move to a new Array backend Parameters ---------- backend : str, Optional The name of the new backend to move to. The default is the current "array.backend" configuration. Returns ------- Array

(self, backend: str | None = None, **kwargs)

Source from the content-addressed store, hash-verified

1858 return from_dask_array(self, columns=columns, index=index, meta=meta)
1859
1860 def to_backend(self, backend: str | None = None, **kwargs):
1861 """Move to a new Array backend
1862
1863 Parameters
1864 ----------
1865 backend : str, Optional
1866 The name of the new backend to move to. The default
1867 is the current "array.backend" configuration.
1868
1869 Returns
1870 -------
1871 Array
1872 """
1873 from dask.array.creation import to_backend
1874
1875 return to_backend(self, backend=backend, **kwargs)
1876
1877 def __bool__(self):
1878 if self.size > 1:

Callers 4

to_backendFunction · 0.45
test_to_backendFunction · 0.45
test_to_backend_cupyFunction · 0.45

Calls 1

to_backendFunction · 0.90

Tested by 3

test_to_backendFunction · 0.36
test_to_backend_cupyFunction · 0.36