Bad Error Message

>>> import torch
>>> import numpy as np
>>>,5)), np.zeros((5,5))),1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: expected Variable as element 0 in argument 0, but got tuple

Well this error message didnt make sense to me, especially when Variables are deprecated in pytorch 0.4
I guess it could be improved…

Thank you for the report, I’ve filed an issue here: