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

Method _backend

dask/array/_array_expr/random.py:512–516  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

510
511 @property
512 def _backend(self):
513 # Assumes typename(self._RandomState) starts with
514 # an importable array-library name (e.g. "numpy" or "cupy")
515 _backend_name = typename(self._RandomState).split(".")[0]
516 return importlib.import_module(_backend_name)
517
518 def seed(self, seed=None):
519 self._numpy_state.seed(seed)

Callers

nothing calls this directly

Calls 2

typenameFunction · 0.90
splitMethod · 0.80

Tested by

no test coverage detected