Fixed small summary with model architectures until now

This commit is contained in:
Victor Mylle
2023-11-30 21:53:35 +00:00
parent eba10c8f83
commit 120b6aa5bd
23 changed files with 402 additions and 185 deletions

View File

@@ -37,9 +37,9 @@ class GRUModel(torch.nn.Module):
def forward(self, x):
# Forward pass through the GRU layers
_, hidden_state = self.gru(x)
x, _ = self.gru(x)
x = x[:, -1, :]
# Use the hidden state from the last time step for the output
output = self.linear(hidden_state[-1])
output = self.linear(x)
return output