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

Method to_backend

dask/array/core.py:1864–1879  ·  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

1862 return from_dask_array(self, columns=columns, index=index, meta=meta)
1863
1864 def to_backend(self, backend: str | None = None, **kwargs):
1865 """Move to a new Array backend
1866
1867 Parameters
1868 ----------
1869 backend : str, Optional
1870 The name of the new backend to move to. The default
1871 is the current "array.backend" configuration.
1872
1873 Returns
1874 -------
1875 Array
1876 """
1877 from dask.array.creation import to_backend
1878
1879 return to_backend(self, backend=backend, **kwargs)
1880
1881 def __bool__(self):
1882 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