Skip to content

pytorch version? #7

Open
Open
@zihaozhang9

Description

@zihaozhang9

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions