Oh, I see.  Tensor.data.fill_() just repeats that last value over & over throughout the tensor.
So in my code,
input.data.fill_(word_idx)
was just taking that one value and repeating it.
Got it.  I need to re-size input after the first iteration of the loop.  I’ll work on that… Thanks.