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

Method _backend

dask/array/random.py:526–530  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

524
525 @property
526 def _backend(self):
527 # Assumes typename(self._RandomState) starts with
528 # an importable array-library name (e.g. "numpy" or "cupy")
529 _backend_name = typename(self._RandomState).split(".")[0]
530 return importlib.import_module(_backend_name)
531
532 def seed(self, seed=None):
533 self._numpy_state.seed(seed)

Callers

nothing calls this directly

Calls 2

typenameFunction · 0.90
splitMethod · 0.80

Tested by

no test coverage detected