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

Method to_backend

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

1853 return from_dask_array(self, columns=columns, index=index, meta=meta)
1854
1855 def to_backend(self, backend: str | None = None, **kwargs):
1856 """Move to a new Array backend
1857
1858 Parameters
1859 ----------
1860 backend : str, Optional
1861 The name of the new backend to move to. The default
1862 is the current "array.backend" configuration.
1863
1864 Returns
1865 -------
1866 Array
1867 """
1868 from dask.array.creation import to_backend
1869
1870 return to_backend(self, backend=backend, **kwargs)
1871
1872 def __bool__(self):
1873 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