Skip to content

Commit

Permalink
Merge pull request #54 from mayorx/fix_warning
Browse files Browse the repository at this point in the history
Cool! Thanks!
  • Loading branch information
wiseodd authored Apr 5, 2018
2 parents 751cc1b + 866b046 commit c790d2c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions GAN/conditional_gan/cgan_pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ def reset_grad():
G_solver = optim.Adam(G_params, lr=1e-3)
D_solver = optim.Adam(D_params, lr=1e-3)

ones_label = Variable(torch.ones(mb_size))
zeros_label = Variable(torch.zeros(mb_size))
ones_label = Variable(torch.ones(mb_size, 1))
zeros_label = Variable(torch.zeros(mb_size, 1))


for it in range(100000):
Expand Down
4 changes: 2 additions & 2 deletions GAN/vanilla_gan/gan_pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ def reset_grad():
G_solver = optim.Adam(G_params, lr=1e-3)
D_solver = optim.Adam(D_params, lr=1e-3)

ones_label = Variable(torch.ones(mb_size))
zeros_label = Variable(torch.zeros(mb_size))
ones_label = Variable(torch.ones(mb_size, 1))
zeros_label = Variable(torch.zeros(mb_size, 1))


for it in range(100000):
Expand Down

0 comments on commit c790d2c

Please sign in to comment.