{"action":"created","issue":{"url":"https://api.github.com/repos/eriklindernoren/PyTorch-GAN/issues/8","repository_url":"https://api.github.com/repos/eriklindernoren/PyTorch-GAN","labels_url":"https://api.github.com/repos/eriklindernoren/PyTorch-GAN/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/eriklindernoren/PyTorch-GAN/issues/8/comments","events_url":"https://api.github.com/repos/eriklindernoren/PyTorch-GAN/issues/8/events","html_url":"https://github.com/eriklindernoren/PyTorch-GAN/issues/8","id":320466450,"number":8,"title":"wgan issuse","user":{"login":"Sophia-intel","id":22313288,"avatar_url":"https://avatars0.githubusercontent.com/u/22313288?v=4","gravatar_id":"","url":"https://api.github.com/users/Sophia-intel","html_url":"https://github.com/Sophia-intel","followers_url":"https://api.github.com/users/Sophia-intel/followers","following_url":"https://api.github.com/users/Sophia-intel/following{/other_user}","gists_url":"https://api.github.com/users/Sophia-intel/gists{/gist_id}","starred_url":"https://api.github.com/users/Sophia-intel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sophia-intel/subscriptions","organizations_url":"https://api.github.com/users/Sophia-intel/orgs","repos_url":"https://api.github.com/users/Sophia-intel/repos","events_url":"https://api.github.com/users/Sophia-intel/events{/privacy}","received_events_url":"https://api.github.com/users/Sophia-intel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-05T00:53:47Z","updated_at":"2018-05-07T08:41:20Z","closed_at":null,"author_association":"NONE","body":"when I run python3 wgan.py, appears      print (\"[Epoch %d/%d] [Batch %d/%d] [D loss: %f] [G loss: %f]\" % (epoch, opt.n_epochs,batches_done % len(dataloader), len(dataloader),d_loss.item(), gen_validity.item()))\r\nValueError: only one element tensors can be converted to Python scalars\r\nhow can i fix it?\r\n"},"comment":{"url":"https://api.github.com/repos/eriklindernoren/PyTorch-GAN/issues/comments/386999108","html_url":"https://github.com/eriklindernoren/PyTorch-GAN/issues/8#issuecomment-386999108","issue_url":"https://api.github.com/repos/eriklindernoren/PyTorch-GAN/issues/8","id":386999108,"user":{"login":"eriklindernoren","id":7977505,"avatar_url":"https://avatars1.githubusercontent.com/u/7977505?v=4","gravatar_id":"","url":"https://api.github.com/users/eriklindernoren","html_url":"https://github.com/eriklindernoren","followers_url":"https://api.github.com/users/eriklindernoren/followers","following_url":"https://api.github.com/users/eriklindernoren/following{/other_user}","gists_url":"https://api.github.com/users/eriklindernoren/gists{/gist_id}","starred_url":"https://api.github.com/users/eriklindernoren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eriklindernoren/subscriptions","organizations_url":"https://api.github.com/users/eriklindernoren/orgs","repos_url":"https://api.github.com/users/eriklindernoren/repos","events_url":"https://api.github.com/users/eriklindernoren/events{/privacy}","received_events_url":"https://api.github.com/users/eriklindernoren/received_events","type":"User","site_admin":false},"created_at":"2018-05-07T08:41:20Z","updated_at":"2018-05-07T08:41:20Z","author_association":"OWNER","body":"I have encountered that issue before but it seems to run without a problem with the latest version. Maybe you can try and run `git pull` and see if that fixes the issue. Have you made any changes to the current implementation?"}}
{"actor":{"display_login":"eriklindernoren"}}