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

Method forward

diff2flow/diffusion.py:104–105  ·  view source on GitHub ↗
(self, x: torch.Tensor, t: torch.Tensor, **kwargs)

Source from the content-addressed store, hash-verified

102 self.ddim_sampler = DDIMSampler(self.diffusion)
103
104 def forward(self, x: torch.Tensor, t: torch.Tensor, **kwargs):
105 return self.net(x, t, **kwargs)
106
107 def training_losses(self, x1: torch.Tensor, x0: torch.Tensor = None, **cond_kwargs):
108 loss, _ = self.diffusion.training_losses(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected