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

pytorch version? #7

Open
zihaozhang9 opened this issue Apr 2, 2019 · 0 comments
Open

pytorch version? #7

zihaozhang9 opened this issue Apr 2, 2019 · 0 comments

Comments

@zihaozhang9
Copy link

Traceback (most recent call last):
File "main.py", line 39, in
results = importlib.import_module(opt['metaLearner']).run(opt,data)
File "/home/user/myproject/FewShotLearning/model/lstm/train-lstm.py", line 121, in run
opt['batchSize'][opt['nTrainShot']])
File "/home/user/anaconda3/envs/FewShotLearning/lib/python2.7/site-packages/torch/nn/modules/module.py", line 489, in call
result = self.forward(*input, **kwargs)
File "/home/user/myproject/FewShotLearning/model/lstm/metaLearner.py", line 145, in forward
self.lstm2_fS_iS_cS_deltaS)
File "/home/user/anaconda3/envs/FewShotLearning/lib/python2.7/site-packages/torch/nn/modules/module.py", line 489, in call
result = self.forward(*input, **kwargs)
File "/home/user/myproject/FewShotLearning/model/lstm/metalstm.py", line 166, in forward
fS_n = torch.stack(fS_n, 0)
TypeError: stack(): argument 'tensors' (position 1) must be tuple of Tensors, not Tensor

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