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

AttributeError: 'tuple' object has no attribute 'grad_fn' #10

Closed
lzhaozi opened this issue May 23, 2018 · 1 comment
Closed

AttributeError: 'tuple' object has no attribute 'grad_fn' #10

lzhaozi opened this issue May 23, 2018 · 1 comment

Comments

@lzhaozi
Copy link

lzhaozi commented May 23, 2018

My env is python2.7+pytorch0.3.1.
When I try this repo, I face the problem:
AttributeError: 'tuple' object has no attribute 'grad_fn'

Does anybody know why?
Is it because the pytorch version is not supported?

@Germanunkol
Copy link

You're probably not feeding a tensor/variable into the make_dot function? Make sure the output from your network is a variable (or tensor), then call make_dot with this result.

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

3 participants