@gabrieldlm pytorch does not support broadcasting yet. You are trying to send ipt wich is a 1D vector of size 10 into a matrix-multiply, which expects a 2D Tensor.
You can do: ipt = ipt.view(1, 10) if it fits your usecase.