MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / forward

Method forward

SwissArmyTransformer/examples/yolos/models/backbone.py:17–23  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

15 self.drop = nn.Dropout(drop)
16
17 def forward(self, x):
18 x = self.fc1(x)
19 x = self.act(x)
20 x = self.drop(x)
21 x = self.fc2(x)
22 x = self.drop(x)
23 return x
24
25class Attention(nn.Module):
26 def __init__(self, dim, num_heads=8, qkv_bias=False, qk_scale=None, attn_drop=0., proj_drop=0.):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected