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

Method forward

diffsynth/extensions/ImageQualityMetric/BLIP/vit.py:103–106  ·  view source on GitHub ↗
(self, x, register_hook=False)

Source from the content-addressed store, hash-verified

101 # self.mlp = checkpoint_wrapper(self.mlp)
102
103 def forward(self, x, register_hook=False):
104 x = x + self.drop_path(self.attn(self.norm1(x), register_hook=register_hook))
105 x = x + self.drop_path(self.mlp(self.norm2(x)))
106 return x
107
108
109class VisionTransformer(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected