b73fc0c21ea55c7d3357fbf633944e1e67db8bdf,theanolm/network/projectionlayer.py,ProjectionLayer,create_structure,#ProjectionLayer#,25

Before Change


        ``set_params()``.
        

        layer_input = tensor.concatenate([x.output for x in self.input_layers],
                                         axis=2)
        num_time_steps = layer_input.shape[0]
        num_sequences = layer_input.shape[1]

        // Indexing the word_projection matrix with a word ID returns the

After Change


        ``set_params()``.
        

        assert len(self.input_layers) == 1
        layer_input = self.input_layers[0].output
        num_time_steps = layer_input.shape[0]
        num_sequences = layer_input.shape[1]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: senarvi/theanolm
Commit Name: b73fc0c21ea55c7d3357fbf633944e1e67db8bdf
Time: 2016-07-31
Author: seppo.git@marjaniemi.com
File Name: theanolm/network/projectionlayer.py
Class Name: ProjectionLayer
Method Name: create_structure


Project Name: pytorch/fairseq
Commit Name: 32335404f09c47cccbfbf731abc4c510d0eef043
Time: 2019-09-20
Author: namangoyal@learnfair1595.h2.fair
File Name: fairseq/data/concat_dataset.py
Class Name: ConcatDataset
Method Name: sizes