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

Class PushBlock

diffsynth/models/sd_unet.py:211–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209
210
211class PushBlock(torch.nn.Module):
212 def __init__(self):
213 super().__init__()
214
215 def forward(self, hidden_states, time_emb, text_emb, res_stack, **kwargs):
216 res_stack.append(hidden_states)
217 return hidden_states, time_emb, text_emb, res_stack
218
219
220class PopBlock(torch.nn.Module):

Callers 5

__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected