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
{{ message }}
This repository has been archived by the owner on Aug 9, 2023. It is now read-only.
Traceback (most recent call last):
File "mip_model.py", line 305, in <module>
net(images, torch.tensor([-30, -20, -10, 0]), torch.tensor([N1]))
File "/opt/software/install/miniconda3/lib/python3.8/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "mip_model.py", line 144, in forward
return self.classifier(image_feats_pooled)
File "/opt/software/install/miniconda3/lib/python3.8/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/opt/software/install/miniconda3/lib/python3.8/site-packages/torch/nn/modules/linear.py", line 93, in forward
return F.linear(input, self.weight, self.bias)
File "/opt/software/install/miniconda3/lib/python3.8/site-packages/torch/nn/functional.py", line 1690, in linear
ret = torch.addmm(bias, input, weight.t())
RuntimeError: mat1 and mat2 shapes cannot be multiplied (1x4 and 1088x2)
The text was updated successfully, but these errors were encountered:
@JihwanEom Thanks for your comments. I still failed to get it work. Appreciate if you could fix the code attached. I haven't applied it to the real world data.
Hope anyone could help figure out the inputs to
MIPModel
.Errors:
The text was updated successfully, but these errors were encountered: