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

error in evalution for sentiment task #14

Open
sruthi50 opened this issue Feb 11, 2021 · 0 comments
Open

error in evalution for sentiment task #14

sruthi50 opened this issue Feb 11, 2021 · 0 comments

Comments

@sruthi50
Copy link

File "train.py", line 315, in main
evaluate(allDataTest, BatchSamplerTest, multiTaskDataLoaderTest, taskParams,
File "/netscratch/sripathi/task2/NLP_Task/multi-task-NLP/models/eval.py", line 25, in evaluate
prediction, scores = model.predict_step(batchMetaData, batchData)
File "/netscratch/sripathi/task2/NLP_Task/multi-task-NLP/models/model.py", line 265, in predict_step
outLogits = self.network(*modelInputs)
File "/netscratch/sripathi/anaconda3/lib/python3.8/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/netscratch/sripathi/task2/NLP_Task/multi-task-NLP/models/model.py", line 120, in forward
logits = self.allHeaderstaskName
File "/netscratch/sripathi/anaconda3/lib/python3.8/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/netscratch/sripathi/anaconda3/lib/python3.8/site-packages/torch/nn/modules/linear.py", line 93, in forward
return F.linear(input, self.weight, self.bias)
File "/netscratch/sripathi/anaconda3/lib/python3.8/site-packages/torch/nn/functional.py", line 1688, in linear
if input.dim() == 2 and bias is not None:
AttributeError: 'tuple' object has no attribute 'dim'

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