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