2b60e6de22b0d59ed4cc4b55e451a36060e622e1,layer/upsample.py,UpSampleLayer,layer_op,#UpSampleLayer#Any#,46

Before Change


            output_tensor = tf.tile(input=input_tensor, multiples=repmat)
            output_tensor = tf.batch_to_space_nd(
                output_tensor,
                [self.kernel_size] * spatial_rank,
                [[0, 0]] * spatial_rank)

        elif self.func == "CHANNELWISE_DECONV":

After Change


                    "consider using `CHANNELWISE_DECONV` operation.")
            // simply replicate input values to
            // local regions of (kernel_size ** spatial_rank) element
            kernel_size_all_dims = get_list_parameter(self.kernel_size, spatial_rank)
            pixel_num = 1
            for x in kernel_size_all_dims:
                pixel_num = pixel_num * x
            repmat = np.hstack((pixel_num, [1] * spatial_rank, 1)).flatten()
            output_tensor = tf.tile(input=input_tensor, multiples=repmat)
            output_tensor = tf.batch_to_space_nd(
                output_tensor,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: NifTK/NiftyNet
Commit Name: 2b60e6de22b0d59ed4cc4b55e451a36060e622e1
Time: 2017-07-07
Author: wguotai@gmail.com
File Name: layer/upsample.py
Class Name: UpSampleLayer
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


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