mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
prevent mypy error, explicitly unpack input list of pytorch mlp model,
This commit is contained in:
parent
d9d9993179
commit
0c4574b3b7
|
@ -48,7 +48,7 @@ class PyTorchMLPModel(nn.Module):
|
|||
self.dropout = nn.Dropout(p=dropout_percent)
|
||||
|
||||
def forward(self, x: List[torch.Tensor]) -> torch.Tensor:
|
||||
x, = x
|
||||
x = x[0]
|
||||
x = self.relu(self.input_layer(x))
|
||||
x = self.dropout(x)
|
||||
x = self.blocks(x)
|
||||
|
|
Loading…
Reference in New Issue
Block a user