Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
classifier on generator for tga (#3716)
Browse files Browse the repository at this point in the history
  • Loading branch information
Emily Dinan authored Jun 15, 2021
1 parent fe36d88 commit e93a00f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions projects/style_gen/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ def forward(self, input, encoder_state, embedded_input=None, incr_state=None):
)
)
tensor = tensor + self.position_embeddings(positions).expand_as(tensor)

if self.variant == 'bart':
tensor = self.norm_embeddings(tensor)

tensor = self.dropout(tensor) # --dropout

new_incr_state = {}
Expand Down

0 comments on commit e93a00f

Please sign in to comment.