626da74d11a696d87c54cf935b847335c442b18f,spotlight/sequence/representations.py,LSTMNet,forward,#LSTMNet#Any#Any#,211
Before Change
of shape (minibatch_size, sequence_length)
target_embedding = (self.item_embeddings(targets)
.permute(0, 2, 1))
target_bias = self.item_biases(targets).squeeze(1)
dot = ((user_representations * target_embedding)
.sum(1)
After Change
of shape (minibatch_size, sequence_length)
target_embedding = (self.item_embeddings(targets)
.permute(0, 2, 1)
.squeeze())
target_bias = self.item_biases(targets).squeeze()
dot = ((user_representations * target_embedding)
.sum(1)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: maciejkula/spotlight
Commit Name: 626da74d11a696d87c54cf935b847335c442b18f
Time: 2017-08-06
Author: maciej.kula@gmail.com
File Name: spotlight/sequence/representations.py
Class Name: LSTMNet
Method Name: forward
Project Name: maciejkula/spotlight
Commit Name: 626da74d11a696d87c54cf935b847335c442b18f
Time: 2017-08-06
Author: maciej.kula@gmail.com
File Name: spotlight/sequence/representations.py
Class Name: PoolNet
Method Name: forward
Project Name: maciejkula/spotlight
Commit Name: 626da74d11a696d87c54cf935b847335c442b18f
Time: 2017-08-06
Author: maciej.kula@gmail.com
File Name: spotlight/sequence/representations.py
Class Name: CNNNet
Method Name: forward