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

Method forward

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

Source from the content-addressed store, hash-verified

86 self.conv = torch.nn.Conv2d(channels, channels, 3, padding=1)
87
88 def forward(self, hidden_states, time_emb, text_emb, res_stack, **kwargs):
89 hidden_states = torch.nn.functional.interpolate(hidden_states, scale_factor=2.0, mode="nearest")
90 hidden_states = self.conv(hidden_states)
91 return hidden_states, time_emb, text_emb, res_stack
92
93
94class ResnetBlock(torch.nn.Module):

Callers

nothing calls this directly

Calls 1

interpolateMethod · 0.80

Tested by

no test coverage detected