MCPcopy Index your code
hub / github.com/CompVis/diff2flow / forward

Method forward

diff2flow/trainer_module.py:194–195  ·  view source on GitHub ↗
(self, x1: Tensor, x0: Tensor, **kwargs)

Source from the content-addressed store, hash-verified

192 return out
193
194 def forward(self, x1: Tensor, x0: Tensor, **kwargs):
195 return self.model.training_losses(x1=x1, x0=x0, **kwargs).mean()
196
197 def add_lora_to_unet(self):
198 unet = self.model

Callers 1

training_stepMethod · 0.95

Calls 1

training_lossesMethod · 0.45

Tested by

no test coverage detected