Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

running the demo #22

Open
doramir opened this issue Jul 26, 2018 · 1 comment
Open

running the demo #22

doramir opened this issue Jul 26, 2018 · 1 comment

Comments

@doramir
Copy link

doramir commented Jul 26, 2018

im getting this error IndexError: too many indices for array

File "main.py", line 290, in <module>
    main()
  File "main.py", line 49, in main
    optimize(args)
  File "main.py", line 102, in optimize
    tbar.set_description(total_loss.data.cpu().numpy()[0])
IndexError: too many indices for array
@karenerobinson
Copy link

@doramir Look at the 'reshape' part of my answer to issue 21 :

#21

I debugged it by doing 'python -m pdb' in place of 'python' and checking the shape of a few objects when the code stopped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants