How to assign to a tensor element using a list as full index?

Suppose I have a tensor t of shape [4,4,4,4], and I want to set t[1,1,1,1] = 1. But the full index is actually a dynamically computed list v, where v=[1,1,1,1].
t[v] = 1 doesn’t seem to work.
Is there an easy way?

I think I’ve found a solution. I seemed to ask a naive python question :smiley:
t[tuple(v)] =1