fc8951bbd36b14099e41fe171ab57e9f3937fe4f,congan_train.py,,calc_gradient_penalty,#,95
Before Change
if cuda_available:
interpolates = interpolates.cuda()
interpolates = autograd.Variable(interpolates, requires_grad=True)
disc_interpolates, _ = netD(interpolates)
After Change
if cuda_available:
interpolates = interpolates.cuda()
interpolates.requires_grad_(True)
disc_interpolates, _ = netD(interpolates)
In pattern: SUPERPATTERN
Frequency: 7
Non-data size: 3
Instances
Project Name: jalola/improved-wgan-pytorch
Commit Name: fc8951bbd36b14099e41fe171ab57e9f3937fe4f
Time: 2018-05-08
Author: waterstorm64@gmail.com
File Name: congan_train.py
Class Name:
Method Name: calc_gradient_penalty
Project Name: jalola/improved-wgan-pytorch
Commit Name: fc8951bbd36b14099e41fe171ab57e9f3937fe4f
Time: 2018-05-08
Author: waterstorm64@gmail.com
File Name: congan_train.py
Class Name:
Method Name: train
Project Name: eriklindernoren/PyTorch-GAN
Commit Name: 09b05581ca7cf0ccac1da967c3f824d30924a3a5
Time: 2018-05-04
Author: eriklindernoren@live.se
File Name: implementations/dualgan/dualgan.py
Class Name:
Method Name: compute_gradient_penalty
Project Name: eriklindernoren/PyTorch-GAN
Commit Name: 09b05581ca7cf0ccac1da967c3f824d30924a3a5
Time: 2018-05-04
Author: eriklindernoren@live.se
File Name: implementations/wgan_gp/wgan_gp.py
Class Name:
Method Name: compute_gradient_penalty
Project Name: jalola/improved-wgan-pytorch
Commit Name: fc8951bbd36b14099e41fe171ab57e9f3937fe4f
Time: 2018-05-08
Author: waterstorm64@gmail.com
File Name: gan_train.py
Class Name:
Method Name: train
Project Name: akanimax/pro_gan_pytorch
Commit Name: e9e215c2f7ca0bbbded08d34c834c2a3f43bb8d0
Time: 2019-01-09
Author: akanimax@gmail.com
File Name: pro_gan_pytorch/Losses.py
Class Name: WGAN_GP
Method Name: __gradient_penalty
Project Name: jalola/improved-wgan-pytorch
Commit Name: fc8951bbd36b14099e41fe171ab57e9f3937fe4f
Time: 2018-05-08
Author: waterstorm64@gmail.com
File Name: gan_train.py
Class Name:
Method Name: calc_gradient_penalty