MCPcopy Create free account
hub / github.com/deepbrainai-research/float / forward

Method forward

models/float/styledecoder.py:277–282  ·  view source on GitHub ↗
(self, image, noise=None)

Source from the content-addressed store, hash-verified

275 self.weight = nn.Parameter(torch.zeros(1))
276
277 def forward(self, image, noise=None):
278
279 if noise is None:
280 return image
281 else:
282 return image + self.weight * noise
283
284
285class ConstantInput(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected