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

Method __init__

models/NHits.py:132–137  ·  view source on GitHub ↗
(self, in_features, out_features)

Source from the content-addressed store, hash-verified

130
131class _StaticFeaturesEncoder(nn.Module):
132 def __init__(self, in_features, out_features):
133 super(_StaticFeaturesEncoder, self).__init__()
134 layers = [nn.Dropout(p=0.5),
135 nn.Linear(in_features=in_features, out_features=out_features),
136 nn.ReLU()]
137 self.encoder = nn.Sequential(*layers)
138
139 def forward(self, x):
140 x = self.encoder(x)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected