MCPcopy Create free account
hub / github.com/thygate/stable-diffusion-webui-depthmap-script / forward

Method forward

dmidas/backbones/next_vit.py:199–207  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

197 self.is_bn_merged = True
198
199 def forward(self, x):
200 x = self.patch_embed(x)
201 x = x + self.attention_path_dropout(self.mhca(x))
202 if not torch.onnx.is_in_onnx_export() and not self.is_bn_merged:
203 out = self.norm(x)
204 else:
205 out = x
206 x = x + self.mlp_path_dropout(self.mlp(out))
207 return x
208
209
210class E_MHSA(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected