365c861ccac7588596907b0cff8ddf69cc7a966c,hypergan/samplers/grid_sampler.py,GridSampler,_sample,#GridSampler#,13
Before Change
g = np.concatenate(g, axis=1)
g = np.concatenate(g, axis=1)
g = np.expand_dims(g, axis=0)
x_hat = gan.session.run(gan.autoencoded_x, feed_dict={gan.inputs.x: self.x})
//e = gan.session.run(gan.encoder.sample, feed_dict={gan.inputs.x: g})
return {
"generator":g
After Change
gs = []
for i in range(int(needed)):
zi = z[i*gan.batch_size():(i+1)*gan.batch_size()]
zi = torch.from_numpy(zi).type(torch.FloatTensor).cuda()
g = gan.generator(zi).detach().cpu().numpy()
gs.append(g)
g = np.reshape(gs, [4, 8, gan.channels(), gan.height(), gan.width()])
g = np.concatenate(g, axis=0)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: HyperGAN/HyperGAN
Commit Name: 365c861ccac7588596907b0cff8ddf69cc7a966c
Time: 2020-07-27
Author: mikkel@255bits.com
File Name: hypergan/samplers/grid_sampler.py
Class Name: GridSampler
Method Name: _sample
Project Name: has2k1/plotnine
Commit Name: aa1466a5d63d912166aa260ea34f39e2895c3c89
Time: 2016-10-20
Author: has2k1@gmail.com
File Name: ggplotx/scales/scales.py
Class Name: Scales
Method Name: map
Project Name: facebookresearch/Horizon
Commit Name: e50d699f89b14fcd7dec6bd3cc124109d41eade5
Time: 2018-09-15
Author: jjg@fb.com
File Name: ml/rl/training/dqn_trainer.py
Class Name: DQNTrainer
Method Name: __init__