Closed lzhaozi closed 6 years ago
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?
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.
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?