MCPcopy Create free account
hub / github.com/OliverRensu/ARM / forward

Method forward

models_pretrain.py:101–104  ·  view source on GitHub ↗
(self, q, kv, mask)

Source from the content-addressed store, hash-verified

99 self.mlp = Mlp(in_features=dim, hidden_features=mlp_hidden_dim, act_layer=act_layer, drop=drop)
100
101 def forward(self, q, kv, mask):
102 q = q + self.attn2(self.norm2_1(q), self.norm2_2(kv), mask)
103 q = q + self.mlp(self.norm2(q))
104 return q
105
106
107

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected