I am trying to train my model but i am getting "Index tensor must have the same number of dimensions as self tensor" error. The error occurs in line targets = zeros.scatter_(1, targets.unsqueeze(1).data.cpu(), 1). I am stuck on this for days. if anyone has any suggestion...
I am trying to train my model but i am getting "Index tensor must have the same number of dimensions as self tensor" error. The error occurs in line targets = zeros.scatter_(1, targets.unsqueeze(1).data.cpu(), 1). I am stuck on this for days. if anyone has any suggestion...