6d7df1488515a1a916613308e74afa0a8b685db8,neuron/layers.py,SpatialTransformer,build,#SpatialTransformer#,261

Before Change


        // it"s a 2D Tensor and shape == [N+1, N+1]. 
        //   [dense with N=1, which is the only one that could have a transform shape of 2, would be of size Mx1]
        self.is_affine = len(trf_shape) == 1 or \
                         (len(trf_shape) == 2 and all([trf_shape[0] == self.ndims, trf_shape[1] == self.ndims+1]))

        // check sizes
        if self.is_affine and len(trf_shape) == 1:

After Change


        // it"s a 2D Tensor and shape == [N+1, N+1] or [N, N+1]
        //   [dense with N=1, which is the only one that could have a transform shape of 2, would be of size Mx1]
        self.is_affine = len(trf_shape) == 1 or (len(trf_shape) == 2 and \
            trf_shape[0] in (self.ndims, self.ndims+1) and trf_shape[1] == self.ndims+1)

        // check sizes
        if self.is_affine and len(trf_shape) == 1:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: adalca/neuron
Commit Name: 6d7df1488515a1a916613308e74afa0a8b685db8
Time: 2020-07-28
Author: mhoffmann@mgh.harvard.edu
File Name: neuron/layers.py
Class Name: SpatialTransformer
Method Name: build


Project Name: rasbt/mlxtend
Commit Name: af0d98898e2be517096c18335ab10b43b9fd461e
Time: 2015-03-17
Author: se.raschka@me.com
File Name: mlxtend/classifier/perceptron.py
Class Name: Perceptron
Method Name: fit


Project Name: rasbt/mlxtend
Commit Name: af0d98898e2be517096c18335ab10b43b9fd461e
Time: 2015-03-17
Author: se.raschka@me.com
File Name: mlxtend/classifier/adaline.py
Class Name: Adaline
Method Name: fit