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

Function _is_rng_op

imperative/python/megengine/xla/ir_utils.py:24–39  ·  view source on GitHub ↗
(opr)

Source from the content-addressed store, hash-verified

22
23
24def _is_rng_op(opr):
25 return isinstance(
26 opr,
27 (
28 mops.Dropout,
29 mops.BetaRNG,
30 mops.GammaRNG,
31 mops.GaussianRNG,
32 mops.PermutationRNG,
33 mops.PoissonRNG,
34 mops.ShuffleRNG,
35 mops.UniformRNG,
36 mops.ExponentialRNG,
37 mops.MultinomialRNG,
38 ),
39 )
40
41
42class AbstractVar:

Callers 1

__call__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected