RuntimeError Traceback (most recent call last)
<ipython-input-22-57fdb3c2d0b9> in <module>()
15 optimizer.zero_grad()
16
---> 17 out = cnnt(T, C)
18 # print(out)
19 # print(torch.LongTensor(cla[epoch]))
/usr/local/lib/python3.5/site-packages/torch/nn/modules/module.py in __call__(self, *input, **kwargs)
204
205 def __call__(self, *input, **kwargs):
--> 206 result = self.forward(*input, **kwargs)
207 for hook in self._forward_hooks.values():
208 hook_result = hook(self, input, result)
<ipython-input-21-a8697656e2d4> in forward(self, title, content)
92 # print(conv_out.size())
93 # conv_out = torch.cat((content_out_3,content_out_4,content_out_5),dim=1)
---> 94 logits = self.fc(conv_out)
95 # print(logits)
96 # print(F.softmax(logits.squeeze(0)))
/usr/local/lib/python3.5/site-packages/torch/nn/modules/module.py in __call__(self, *input, **kwargs)
204
205 def __call__(self, *input, **kwargs):
--> 206 result = self.forward(*input, **kwargs)
207 for hook in self._forward_hooks.values():
208 hook_result = hook(self, input, result)
/usr/local/lib/python3.5/site-packages/torch/nn/modules/linear.py in forward(self, input)
52 return self._backend.Linear()(input, self.weight)
53 else:
---> 54 return self._backend.Linear()(input, self.weight, self.bias)
55
56 def __repr__(self):
/usr/local/lib/python3.5/site-packages/torch/nn/_functions/linear.py in forward(self, input, weight, bias)
8 self.save_for_backward(input, weight, bias)
9 output = input.new(input.size(0), weight.size(0))
---> 10 output.addmm_(0, 1, input, weight.t())
11 if bias is not None:
12 # cuBLAS doesn't support 0 strides in sger, so we can't use expand
RuntimeError: matrix and matrix expected at /b/wheel/pytorch-src/torch/lib/THC/generic/THCTensorMathBlas.cu:237
What is the meaning of this RuntimeError?I can not understand