85d3fc00cd039f279463307e70ce645f982b32d2,pyro/nn/dense_nn.py,DenseNN,forward,#DenseNN#Any#,63

Before Change


        
        The forward method
        
        h = x
        for layer in self.layers[:-1]:
            h = self.f(layer(h))
        h = self.layers[-1](h)

        // Shape the output, squeezing the parameter dimension if all ones
        if self.output_multiplier == 1:
            return h
        else:
            h = h.reshape(list(x.size()[:-1]) + [self.output_multiplier])

            if self.count_params == 1:

After Change


        
        The forward method
        
        return self._forward(x)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: uber/pyro
Commit Name: 85d3fc00cd039f279463307e70ce645f982b32d2
Time: 2020-03-26
Author: info@stefanwebb.me
File Name: pyro/nn/dense_nn.py
Class Name: DenseNN
Method Name: forward


Project Name: rasbt/mlxtend
Commit Name: 26f7ac6cc352f44d9517a773b5909c3e50b3aa1b
Time: 2021-02-22
Author: mail@sebastianraschka.com
File Name: mlxtend/classifier/softmax_regression.py
Class Name: SoftmaxRegression
Method Name: predict_proba


Project Name: pytorch/fairseq
Commit Name: 06c9cefed73cfd43f9453c616e1b9d3ef63f58cf
Time: 2021-03-25
Author: changhan@fb.com
File Name: fairseq/models/speech_to_text/s2t_transformer.py
Class Name: S2TTransformerEncoder
Method Name: forward