c7320c3b31fb300e6bab95b5a2e29212f332f2db,hypergan/samplers/batch_walk_sampler.py,BatchWalkSampler,sample,#BatchWalkSampler#Any#Any#,56
Before Change
sample = self._sample()
data = sample["generator"]
for i in range(np.shape(data)[0]):
sample_data = data[i:i+1]
self.plot(sample_data, path, save_samples)
time.sleep(0.018)
return []
def plot(self, image, filename, save_sample):
Plot an image.
After Change
with gan.session.as_default():
z = np.reshape(z, [1, -1])
sample_data = gan.session.run(gan.generator.sample, feed_dict={z_t: z})
self.plot(sample_data, path, save_samples)
time.sleep(0.018)
return []
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: HyperGAN/HyperGAN
Commit Name: c7320c3b31fb300e6bab95b5a2e29212f332f2db
Time: 2018-08-20
Author: mikkel@255bits.com
File Name: hypergan/samplers/batch_walk_sampler.py
Class Name: BatchWalkSampler
Method Name: sample
Project Name: idaholab/raven
Commit Name: 438b2a63d195c8f5ccecae35d577d8bfde354406
Time: 2020-08-22
Author: mohammad.abdo@inl.gov
File Name: framework/Optimizers/GeneticAlgorithm.py
Class Name: GeneticAlgorithm
Method Name: _useRealization
Project Name: tensorflow/ranking
Commit Name: 1271e900113a2730b8fec9db1e750b26db4b6af9
Time: 2019-09-18
Author: xuanhui@google.com
File Name: tensorflow_ranking/python/model.py
Class Name: _GroupwiseRankingModel
Method Name: _compute_logits_impl