GPT2 head WIP

This commit is contained in:
Andrzej Preibisz 2023-02-12 19:16:19 +01:00
parent 5b438a884c
commit 1e6683a6aa

View File

@ -84,10 +84,10 @@ class GPT2ClassificationHeadCustom(nn.Module):
x = torch.relu(x)
x = self.dropout(x)
x = torch.flatten(x)
x = torch.relu(x)
x = self.dense_2(x)
x = self.dropout(x)
x = self.out_proj(x)
return x