87d57a3d34a1eef2c6ad5519741710e3321f136c,DialogueRNN/model.py,BiE2EModel,forward,#BiE2EModel#,304
Before Change
//emotions = emotions.unsqueeze(1)
if att2:
att_emotions = []
alpha = []
for t in emotions:
att_em, alpha_ = self.matchatt(emotions,t,mask=umask)
att_emotions.append(att_em.unsqueeze(0))
alpha.append(alpha_[:,0,:])
att_emotions = torch.cat(att_emotions,dim=0)
hidden = F.relu(self.linear(att_emotions))
else:
hidden = F.relu(self.linear(emotions))
//hidden = F.relu(self.linear2(hidden))
After Change
qmask = torch.FloatTensor([[1,0],[0,1],[1,0]]).type(T1.type())
qmask = qmask.unsqueeze(1).expand(-1, T1.size(1), -1)
umask = torch.FloatTensor([1,1,1]).type(T1.type())
umask = umask.expand(-1, T1.size(1))
emotions_f, alpha_f = self.dialog_rnn_f(U, qmask) // seq_len, batch, D_e
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: SenticNet/conv-emotion
Commit Name: 87d57a3d34a1eef2c6ad5519741710e3321f136c
Time: 2019-03-19
Author: 40890991+soujanyaporia@users.noreply.github.com
File Name: DialogueRNN/model.py
Class Name: BiE2EModel
Method Name: forward
Project Name: CNuge/kaggle-code
Commit Name: b7990885d8b26b9404fd9ce952b0b2f005019594
Time: 2018-01-12
Author: nugentc@uoguelph.ca
File Name: california_housing/feature_engineering.py
Class Name:
Method Name:
Project Name: nicola-decao/s-vae-pytorch
Commit Name: 3a3916adbe18066f8fdf854ae1c9edbb28103ec3
Time: 2018-07-28
Author: nicola.decao@student.uva.nl
File Name: hyperspherical_vae/distributions/von_mises_fisher.py
Class Name: VonMisesFisher
Method Name: __sample_w_rej