30dfa316d689a232c2e6deaa813827be52aba961,niftynet/network/simulator_gan.py,ImageGenerator,layer_op,#ImageGenerator#Any#Any#Any#Any#,35

Before Change


        sz = [image_size[:-1]]
        keep_prob_ph = 1  // not passed in as a placeholder
        for i in range(4):
            ch.append(round((ch[-1] + conditioning_channels * self.generator_shortcuts[i]) / 2))
            sz = [[int(round(i / 2)) for i in sz[0]]] + sz
        if spatial_rank == 3:
            def resize_func(x, sz):

After Change


    def layer_op(self, random_source, image_size, conditioning, is_training):
        keep_prob_ph = 1  // not passed in as a placeholder
        add_noise = self.noise_channels_per_layer
        if conditioning is not None:
            conditioning_channels = conditioning.get_shape().as_list()[-1]
            conditioning_channels = conditioning_channels + add_noise
        else:
            conditioning_channels = add_noise

        // feature channels design pattern
        ch = [512]
        sz = [image_size[:-1]]
        for i in range(4):
            new_ch = ch[-1] + conditioning_channels * self.with_shortcuts[i]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: NifTK/NiftyNet
Commit Name: 30dfa316d689a232c2e6deaa813827be52aba961
Time: 2017-09-12
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/network/simulator_gan.py
Class Name: ImageGenerator
Method Name: layer_op


Project Name: WZBSocialScienceCenter/tmtoolkit
Commit Name: 098f69b7c2282a556fc0b57d37b70328457de834
Time: 2017-10-11
Author: markus.konrad@wzb.eu
File Name: tmtoolkit/lda_utils/evaluation_lda.py
Class Name: MultiprocEvaluationWorkerLDA
Method Name: fit_model_using_params


Project Name: datascienceinc/Skater
Commit Name: 5601c4bb909b4146327fa68c6d5b668f997baaff
Time: 2017-03-21
Author: aikramer2@gmail.com
File Name: pyinterpret/data/dataset.py
Class Name: DataSet
Method Name: _build_metastore