-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
transpose? #9
Comments
I think transpose was used because PyTorch expects the batch_size in the second dimension, it's been a while since I have coded this. But, I have checked all the dimensions from the start to the end when I developed it. :) |
Thank you so much 👍 |
@Sandeep42 @hungthanhpham94 In the function
In this way, after the However, the first function to be called is the If this is correct, it requires to fix up all the following code. |
Why do you need transpose here
_s, state_word, _ = word_attn_model(mini_batch[i,:,:].transpose(0,1), state_word)
and here:
torch.from_numpy(main_matrix).transpose(0,1) in def pad_batch
Thanks :)
The text was updated successfully, but these errors were encountered: