Skip to content
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

Why we need to expand and reshape the tensor to [(slot_dim*ds*ts), bert_seq, hid_size] #11

Open
yixuan004 opened this issue Oct 9, 2021 · 1 comment

Comments

@yixuan004
Copy link

Why we need to expand and reshape the tensor to [(slot_dimdsts), bert_seq, hid_size], is that mean every utterance need to mapping into slot_dim times prediction

hidden = torch.mul(hidden, attention_mask.view(-1, self.max_seq_length, 1).expand(hidden.size()).float())

@yixuan004
Copy link
Author

My code base is weak, hope to get your help! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant