Construction of list with tensor values over loop

Hello,
How can I construct a list with the values of a pytorch variable over a loop of iterations, e.g. in pseudocode:

x = torch.Variable()
L=[]
for _ in range(num_iters):
       L.append(x.data.numpy())
       x = update(x)