Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn #128

Closed
ch3njust1n opened this issue Aug 17, 2018 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ch3njust1n
Copy link
Owner

Process Process-5:1:2:
Traceback (most recent call last):
  File "/home/ubuntu/anaconda2/envs/smpl/lib/python2.7/multiprocessing/process.py", line 267, in _bootstrap
    self.run()
  File "/home/ubuntu/anaconda2/envs/smpl/lib/python2.7/multiprocessing/process.py", line 114, in run
    self._target(*self._args, **self._kwargs)
  File "/home/ubuntu/smpl/distributed/train.py", line 65, in train
    loss.backward()
  File "/home/ubuntu/anaconda2/envs/smpl/lib/python2.7/site-packages/torch/tensor.py", line 93, in backward
    torch.autograd.backward(self, gradient, retain_graph, create_graph)
  File "/home/ubuntu/anaconda2/envs/smpl/lib/python2.7/site-packages/torch/autograd/__init__.py", line 90, in backward
    allow_unreachable=True)  # allow_unreachable flag
RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn
@ch3njust1n ch3njust1n added the bug Something isn't working label Aug 17, 2018
@ch3njust1n ch3njust1n self-assigned this Aug 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant