MCPcopy Create free account
hub / github.com/OpenImagingLab/FlashVSR / forward

Method forward

diffsynth/models/sd_unet.py:76–80  ·  view source on GitHub ↗
(self, hidden_states, time_emb, text_emb, res_stack, **kwargs)

Source from the content-addressed store, hash-verified

74 self.extra_padding = extra_padding
75
76 def forward(self, hidden_states, time_emb, text_emb, res_stack, **kwargs):
77 if self.extra_padding:
78 hidden_states = torch.nn.functional.pad(hidden_states, (0, 1, 0, 1), mode="constant", value=0)
79 hidden_states = self.conv(hidden_states)
80 return hidden_states, time_emb, text_emb, res_stack
81
82
83class UpSampler(torch.nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected