c81713367e3e97f13dd584ae8e48b79615951437,keras/layers/local.py,LocallyConnected2D,build,#LocallyConnected2D#Any#,301

Before Change


                             "should be fully-defined, but layer received "
                             "the inputs shape " + str(input_shape))

        output_shape = self.compute_output_shape(input_shape)
        if self.data_format == "channels_first":
            _, filters, output_row, output_col = output_shape
            input_filter = input_shape[1]
        elif self.data_format == "channels_last":
            _, output_row, output_col, filters = output_shape
            input_filter = input_shape[3]

After Change


                             " a LocallyConnected2D layer "
                             "should be fully-defined, but layer received "
                             "the inputs shape " + str(input_shape))
        output_row = conv_utils.conv_output_length(input_row, self.kernel_size[0],
                                                   self.padding, self.strides[0])
        output_col = conv_utils.conv_output_length(input_col, self.kernel_size[1],
                                                   self.padding, self.strides[1])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: keras-team/keras
Commit Name: c81713367e3e97f13dd584ae8e48b79615951437
Time: 2017-02-23
Author: francois.chollet@gmail.com
File Name: keras/layers/local.py
Class Name: LocallyConnected2D
Method Name: build


Project Name: keras-team/keras
Commit Name: 408de9b67f56636b9802adae82c06f70f60ae000
Time: 2017-09-26
Author: hansg91@gmail.com
File Name: keras/layers/core.py
Class Name: Reshape
Method Name: call


Project Name: keras-team/keras
Commit Name: c81713367e3e97f13dd584ae8e48b79615951437
Time: 2017-02-23
Author: francois.chollet@gmail.com
File Name: keras/layers/local.py
Class Name: LocallyConnected1D
Method Name: build