3852c50f4e5553dd150f2f77efba6ec23920de3c,niftynet/application/gan_application.py,GANApplication,connect_data_and_network,#GANApplication#Any#Any#,198
Before Change
training_grads_collector.add_to_collection(grads)
return net_output
else:
raise NotImplementedError
// data_dict = self.get_sampler()[0].pop_batch_op()
// images = data_dict["images"]
// net_output = self._net(images, False)
After Change
//raise NotImplementedError
data_dict = self.get_sampler()[0].pop_batch_op()
image_size = self.data_param[self.gan_param.image[0]].spatial_window_size
batch_image_size = (self.net_param.batch_size,)+image_size+(1,)
dummy_image = tf.zeros(batch_image_size)
net_output = self._net(data_dict["vector"],
dummy_image,
None,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: NifTK/NiftyNet
Commit Name: 3852c50f4e5553dd150f2f77efba6ec23920de3c
Time: 2017-08-16
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/application/gan_application.py
Class Name: GANApplication
Method Name: connect_data_and_network
Project Name: keras-team/keras
Commit Name: 1d81a20292ca6926e595d06a6cd725dbb104a146
Time: 2019-01-05
Author: raphael.meudec@gmail.com
File Name: keras/initializers.py
Class Name: Identity
Method Name: __call__
Project Name: dmlc/gluon-cv
Commit Name: fdd55d36c05c747643fc98430a7f9b787b6cec16
Time: 2019-08-29
Author: yizhu59@gmail.com
File Name: gluoncv/data/kinetics400/classification.py
Class Name: Kinetics400
Method Name: _TSN_RGB