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):
sz_x = x.get_shape().as_list()
After Change
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]
new_ch = round(new_ch / 2)
ch.append(new_ch)
sz = [[int(round(i / 2)) for i in sz[0]]] + sz
// resizing utilities
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: microsoft/nni
Commit Name: 19173aa4370e36cba96ee7049eaaa0dceda5007c
Time: 2019-08-14
Author: suiguoxin@gmail.com
File Name: src/sdk/pynni/nni/metis_tuner/metis_tuner.py
Class Name: MetisTuner
Method Name: update_search_space
Project Name: microsoft/nni
Commit Name: 3b60f1157530b1e6610f92766358bf0cf05a86d0
Time: 2019-08-12
Author: suiguoxin@gmail.com
File Name: src/sdk/pynni/nni/metis_tuner/metis_tuner.py
Class Name: MetisTuner
Method Name: update_search_space