8b76443370012387d72de131e41e600a6d4231ea,layer/deconvolution.py,DeconvLayer,layer_op,#DeconvLayer#Any#,75

Before Change


                                      self.stride,
                                      self.kernel_size,
                                      self.padding)
        full_output_size = np.vstack((input_shape[0],
                                      [output_dim] * spatial_rank,
                                      self.n_output_chns)).flatten()
        output_tensor = op_(value=input_tensor,
                            filter=deconv_kernel,
                            output_shape=full_output_size.tolist(),
                            strides=full_stride.tolist(),

After Change


        spatial_rank = layer_util.infer_spatial_rank(input_tensor)

        // initialize conv kernels/strides and then apply
        kernel_size_all_dim = get_list_parameter(self.kernel_size, spatial_rank)
        w_full_size = kernel_size_all_dim + [self.n_output_chns, n_input_chns]
        stride_all_dim = get_list_parameter(self.stride, spatial_rank)
        full_stride = [1] + stride_all_dim + [1]
        
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: NifTK/NiftyNet
Commit Name: 8b76443370012387d72de131e41e600a6d4231ea
Time: 2017-06-19
Author: wguotai@gmail.com
File Name: layer/deconvolution.py
Class Name: DeconvLayer
Method Name: layer_op


Project Name: NifTK/NiftyNet
Commit Name: 628bc779b81ad668b5e2dee11ff3b00b42b85e89
Time: 2017-06-19
Author: wguotai@gmail.com
File Name: layer/downsample.py
Class Name: DownSampleLayer
Method Name: layer_op


Project Name: NifTK/NiftyNet
Commit Name: a430457d64eb4208619ab9920f6f1533e0cffef9
Time: 2017-06-19
Author: wguotai@gmail.com
File Name: layer/convolution.py
Class Name: ConvLayer
Method Name: layer_op