MCPcopy Create free account
hub / github.com/PythonOT/POT / randn

Method randn

ot/backend.py:2700–2705  ·  view source on GitHub ↗
(self, *size, type_as=None)

Source from the content-addressed store, hash-verified

2698 return self.rng_.rand(*size, dtype=type_as.dtype)
2699
2700 def randn(self, *size, type_as=None):
2701 if type_as is None:
2702 return self.rng_.randn(*size)
2703 else:
2704 with cp.cuda.Device(type_as.device):
2705 return self.rng_.randn(*size, dtype=type_as.dtype)
2706
2707 def randperm(self, size, type_as=None):
2708 if not isinstance(size, int):

Callers

nothing calls this directly

Calls 1

randnMethod · 0.45

Tested by

no test coverage detected