MCPcopy Create free account
hub / github.com/ChunmingHe/WS-SAM / forward

Method forward

lib/VIT/decoder/decoder_p.py:163–166  ·  view source on GitHub ↗
(self, x,mask=None)

Source from the content-addressed store, hash-verified

161 self.ffn = FeedForward(dim, ffn_expansion_factor, bias)
162
163 def forward(self, x,mask=None):
164 x = x + self.attn(self.norm1(x),mask)
165 x = x + self.ffn(self.norm2(x))
166 return x
167
168 def initialize(self):
169 weight_init(self)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected