Skip to content

Commit

Permalink
fix logits dropout bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mmz33 authored and JackTemaki committed Oct 15, 2024
1 parent dcf0381 commit 6a147b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions i6_models/decoder/attention.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@ def forward(
readout_in = readout_in.view(readout_in.size(0), readout_in.size(1), -1, 2) # [B,N,D/2,2]
readout, _ = torch.max(readout_in, dim=-1) # [B,N,D/2]

output = self.output(readout)
decoder_logits = self.output_dropout(output)
readout_drop = self.output_dropout(readout)
decoder_logits = self.output(readout_drop)

state = lstm_state, att_context, accum_att_weights

Expand Down

0 comments on commit 6a147b7

Please sign in to comment.