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

Class PopBlock

diffsynth/models/sd_unet.py:220–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218
219
220class PopBlock(torch.nn.Module):
221 def __init__(self):
222 super().__init__()
223
224 def forward(self, hidden_states, time_emb, text_emb, res_stack, **kwargs):
225 res_hidden_states = res_stack.pop()
226 hidden_states = torch.cat([hidden_states, res_hidden_states], dim=1)
227 return hidden_states, time_emb, text_emb, res_stack
228
229
230class SDUNet(torch.nn.Module):

Callers 3

__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected