MCPcopy Create free account
hub / github.com/tdrussell/diffusion-pipe / forward

Method forward

models/ideogram4.py:252–257  ·  view source on GitHub ↗
(self, inputs)

Source from the content-addressed store, hash-verified

250 return getattr(self.model[0], name)
251
252 def forward(self, inputs):
253 h, attn_mask, adaln_input, sizes, *freqs_cis = inputs
254 out = self.final_layer(h, adaln_input)
255 L_text, gh, gw = sizes
256 out = -self._tokens_to_img(out[:, L_text:], gh, gw)
257 return out
258
259
260class Wrapper(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected