MCPcopy Create free account
hub / github.com/BorealisAI/scaleformer / __init__

Method __init__

models/NHitsMS.py:146–151  ·  view source on GitHub ↗
(self, in_features, out_features)

Source from the content-addressed store, hash-verified

144
145class _StaticFeaturesEncoder(nn.Module):
146 def __init__(self, in_features, out_features):
147 super(_StaticFeaturesEncoder, self).__init__()
148 layers = [nn.Dropout(p=0.5),
149 nn.Linear(in_features=in_features, out_features=out_features),
150 nn.ReLU()]
151 self.encoder = nn.Sequential(*layers)
152
153 def forward(self, x):
154 x = self.encoder(x)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected