MCPcopy Create free account
hub / github.com/YvanYin/DrivingWorld / forward

Method forward

models/ar.py:146–150  ·  view source on GitHub ↗
(self, x, attn_mask)

Source from the content-addressed store, hash-verified

144 )
145
146 def forward(self, x, attn_mask):
147 attn = self.attn(self.ln1(x),attn_mask)
148 x = x + attn
149 x = x + self.mlp(self.ln2(x))
150 return x
151
152class CausalTimeSelfAttention(nn.Module):
153 def __init__(self, config):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected