626da74d11a696d87c54cf935b847335c442b18f,spotlight/sequence/representations.py,CNNNet,forward,#CNNNet#,397

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)
Italian Trulli
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: CNNNet
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: 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