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

Function fn3

imperative/python/test/unit/random/test_rng.py:851–854  ·  view source on GitHub ↗
(shape, replacement)

Source from the content-addressed store, hash-verified

849 ]
850
851 def fn3(shape, replacement):
852 input = random.normal(0, 1, shape)
853 out = random.multinomial(input=input, num_samples=2, replacement=True)
854 return out
855
856 for i in range(len(input_shapes_for_multinomial)):
857 shape = input_shapes_for_multinomial[i]

Callers

nothing calls this directly

Calls 2

normalMethod · 0.80
multinomialMethod · 0.80

Tested by

no test coverage detected