MCPcopy
hub / github.com/dask/dask / _rng_from_bitgen

Function _rng_from_bitgen

dask/array/random.py:781–786  ·  view source on GitHub ↗
(bitgen)

Source from the content-addressed store, hash-verified

779
780
781def _rng_from_bitgen(bitgen):
782 # Assumes typename(bitgen) starts with importable
783 # library name (e.g. "numpy" or "cupy")
784 backend_name = typename(bitgen).split(".")[0]
785 backend_lib = importlib.import_module(backend_name)
786 return backend_lib.random.default_rng(bitgen)
787
788
789def _shuffle(bit_generator, x, axis=0):

Callers 3

_shuffleFunction · 0.70
_apply_random_funcFunction · 0.70
_choice_rngFunction · 0.70

Calls 2

typenameFunction · 0.90
splitMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…