FewShotLearning icon indicating copy to clipboard operation
FewShotLearning copied to clipboard

pytorch version?

Open zihaozhang9 opened this issue 5 years ago • 0 comments

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

zihaozhang9 avatar Apr 02 '19 10:04 zihaozhang9