MCPcopy Create free account
hub / github.com/Walter0807/MotionBERT / __init__

Method __init__

lib/model/DSTformer.py:70–77  ·  view source on GitHub ↗
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)

Source from the content-addressed store, hash-verified

68
69class MLP(nn.Module):
70 def __init__(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.):
71 super().__init__()
72 out_features = out_features or in_features
73 hidden_features = hidden_features or in_features
74 self.fc1 = nn.Linear(in_features, hidden_features)
75 self.act = act_layer()
76 self.fc2 = nn.Linear(hidden_features, out_features)
77 self.drop = nn.Dropout(drop)
78
79 def forward(self, x):
80 x = self.fc1(x)

Callers 3

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected