MCPcopy Create free account
hub / github.com/VisionXLab/OF-Diff / DiracDistribution

Class DiracDistribution

ldm/modules/distributions/distributions.py:13–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12
13class DiracDistribution(AbstractDistribution):
14 def __init__(self, value):
15 self.value = value
16
17 def sample(self):
18 return self.value
19
20 def mode(self):
21 return self.value
22
23
24class DiagonalGaussianDistribution(object):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected