Thanks Richard. So what does Variable(loss.data).backward() do then? It seems to do something for my network, in that the calculated loss at the end is, in fact, decreasing. That’s the part I really can’t figure out.