MCPcopy Index your code
hub / github.com/geekcomputers/Python / forward

Method forward

ML/src/python/neuralforge/nn/attention.py:125–128  ·  view source on GitHub ↗
(self, x, mask=None)

Source from the content-addressed store, hash-verified

123 self.norm = nn.LayerNorm(embed_dim)
124
125 def forward(self, x, mask=None):
126 for layer in self.layers:
127 x = layer(x, mask)
128 return self.norm(x)
129
130class VisionTransformerBlock(nn.Module):
131 def __init__(self, img_size=224, patch_size=16, in_channels=3, embed_dim=768,

Callers

nothing calls this directly

Calls 1

normMethod · 0.80

Tested by

no test coverage detected