You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I presume encoder_dim should have been self.encoder_dim!
and here
# create tensors to hold word prediction scores and alphas
predictions = torch.zeros(batch_size, max(decode_lens), vocab_size).to(device)
vocab_size should instead be self.vocab_size.
Please correct me If I got this wrong.
The text was updated successfully, but these errors were encountered:
naveen-marthala
changed the title
global variables are being used instead of instance variables in DecoderWithAttention
global variables are being used instead of instance variables in DecoderWithAttention in "Show, Attend and Tell.ipynb"
Jul 14, 2022
I could identify some places, where the global variables are being used inside
DecoderWithAttention
, like this line inforward
method:I presume
encoder_dim
should have beenself.encoder_dim
!and here
vocab_size
should instead beself.vocab_size
.Please correct me If I got this wrong.
The text was updated successfully, but these errors were encountered: