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

TypeError: rsub() received an invalid combination of arguments got (Tensor,list), but expected one of: * (Tensor input, Tensor other, Number alpha) * (Tensor input, Number other, Number alpha) #159

Open
rriicckkee opened this issue Jan 5, 2024 · 1 comment

Comments

@rriicckkee
Copy link

traceback (most recent call last):
File "/home/dell/anaconda3/envs/ysa/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/home/dell/anaconda3/envs/ysa/lib/python3.6/threading.py", line 864, in runself._target(*self._args, **self._kwargs)File "train.py", line 154, in train
diffs, offsets,filters, occlusions = model(torch.stack((X0,y,X1),dim = 0))File "/home/dell/anaconda3/envs/ysa/lib/python3.6/site-packages/torch/nn/modules/module.py", line 547,in _call
result = self.forward(*input, **kwargs]
File "/home/dell/ysa/DAIN-master/networks/DAIN_slowmotion.py", ine 189, in forward
losses +=[cur_output - cur_input_1]
File "/home/dell/anaconda3/envs/ysa/lib/python3.6/site-packages/torch/tensor.py", line 325, in _rsub.
return _C._VariableFunctions .rsub(self, other)
IypeError: rsub()
received an invalid combination of arguments - got (Tensor, list), but expected one of:

  • (Tensor input.Tensor other, Number alpha
  • (Tensor input,Number other . Number alphal
@rriicckkee
Copy link
Author

How to solve the above problems that occur during training?

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

1 participant