MCPcopy Create free account
hub / github.com/CompVis/diff2flow / __call__

Method __call__

diff2flow/flow.py:387–388  ·  view source on GitHub ↗
(self, n, device='cpu', dtype=torch.float32)

Source from the content-addressed store, hash-verified

385 self.scale = scale
386
387 def __call__(self, n, device='cpu', dtype=torch.float32):
388 return torch.sigmoid(self.loc + self.scale * torch.randn(n)).to(device).to(dtype)
389
390
391""" Flow Model """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected