In [7]:
w_list = []
with tf.Session() as sess:
    # here we have to run a 
    sess.run(init)
    for i in range(1000):
        sess.run(gradient)
        w_temp = sess.run(w)
        w_list.append(w_temp)