(self, in_features, out_features)
| 144 | |
| 145 | class _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) |