ZiJianZhao / SeqGAN-PyTorch

A implementation of SeqGAN in PyTorch, following the implementation in tensorflow.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem with running

dokato opened this issue · comments

Hi, thanks for the great code.

When I tried to run your vanilla example python main.py I got:

IndexError: invalid index of a 0-dim tensor. Use tensor.item() to convert a 0-dim tensor to a Python number

I'm running it under python 3.5.6 and pytorch 1.0.0

commented

Hey Dokato, you might want to have a look at my PullRequest which fixes this bug and some more :)