python hw2main.py
Using device: cpu

Traceback (most recent call last):
File “hw2main.py”, line 142, in 
main()
File “hw2main.py”, line 72, in main
ratingOutput, categoryOutput = net(inputs, length)
File “C:\Users\Cliff\AppData\Local\Programs\Python\Python38\lib\site-packages\torch\nn\modules\module.py”, line 532, in call
result = self.forward(*input, **kwargs)
File “F:\Master of Information Technology at UNSW\COMP9444 Neural Networks and Deep Learning\Assignment\Assignment 2\hw2\student.py”, line 105, in forward
out_rating = torch.sigmoid(self.fc_rating(out_rating))
File “C:\Users\Cliff\AppData\Local\Programs\Python\Python38\lib\site-packages\torch\nn\modules\module.py”, line 532, in call
result = self.forward(*input, **kwargs)
File “C:\Users\Cliff\AppData\Local\Programs\Python\Python38\lib\site-packages\torch\nn\modules\linear.py”, line 87, in forward
return F.linear(input, self.weight, self.bias)
File “C:\Users\Cliff\AppData\Local\Programs\Python\Python38\lib\site-packages\torch\nn\functional.py”, line 1372, in linear
output = input.matmul(weight.t())
RuntimeError: size mismatch, m1: [60 x 200], m2: [100 x 1] at C:\w\1\s\windows\pytorch\aten\src\TH/generic/THTensorMath.cpp:136