You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to run your example for SAM, but I'm running into the following error:
Traceback (most recent call last):
File "dnc_test.py", line 20, in <module>
rnn(torch.randn(10, 4, 64), (controller_hidden, memory, read_vectors), reset_experience=True)
File "/home/xxx/miniconda3/envs/my_env/lib/python3.6/site-packages/torch/nn/modules/module.py", line 357, in __call__
result = self.forward(*input, **kwargs)
File "/home/xxx/git_repos/pytorch-dnc/dnc/dnc.py", line 222, in forward
inputs = [T.cat([input[:, x, :], last_read], 1) for x in range(max_length)]
File "/home/xxx/git_repos/pytorch-dnc/dnc/dnc.py", line 222, in <listcomp>
inputs = [T.cat([input[:, x, :], last_read], 1) for x in range(max_length)]
TypeError: cat received an invalid combination of arguments - got (list, int), but expected one of:
* (sequence[torch.cuda.FloatTensor] seq)
* (sequence[torch.cuda.FloatTensor] seq, int dim)
didn't match because some of the arguments have invalid types: (list, int)
I tried loading the input tensor onto the gpu with .cuda() and transforming last_read to a Tensor with .data, but that led to other issues.
I'm trying to run your example for SAM, but I'm running into the following error:
I tried loading the input tensor onto the gpu with
.cuda()
and transforming last_read to a Tensor with.data
, but that led to other issues.There's also a typo in your documentation:
should be
The text was updated successfully, but these errors were encountered: