MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / fn

Function fn

imperative/python/test/unit/random/test_rng.py:806–813  ·  view source on GitHub ↗
(shape)

Source from the content-addressed store, hash-verified

804 ]
805
806 def fn(shape):
807 o1 = random.uniform(0, 1, shape)
808 o2 = random.normal(0, 1, shape)
809 o3 = random.gamma(2, 1, shape)
810 o4 = random.beta(2, 1, shape)
811 o5 = random.poisson(2, shape)
812 o6 = random.exponential(1.5, shape)
813 return o1, o2, o3, o4, o5, o6
814
815 for shape in shapes:
816 if is_symbolic is not None:

Callers 2

run_testFunction · 0.50
apply_transformationMethod · 0.50

Calls 6

uniformMethod · 0.80
normalMethod · 0.80
gammaMethod · 0.80
betaMethod · 0.80
poissonMethod · 0.80
exponentialMethod · 0.80

Tested by

no test coverage detected