title: Any way to have a loop to build a variable array in ternsorflow?
body: <p>New with Tensorflow. If i want do some thing like </p>
  
  <pre><code>x_pl=tf.placeholder([None,n])
  y_pl=tf.placeholder([None,m])
  b_0=tf.Variable(tf.zeros(n))
  k=tf.Variable)[n,n])
  b_1=tf.matmul(b_0,k)
  b_2=tf.matmul(b_1,k)
  ...
  b_m=tf.matmul(b_(m-1),k)
  y_prd=tf.matmul(x_pl,[b_0,...b_m])
  loss=tf.reduce_mean(tf.square(y_prd-y_pl)
  </code></pre>
  
  <p>What's the best way to do this?
  it seems to me that i need to have a loop that can generate a variable array before session init all the variables.</p>
  
  <p>Any help will be highly appreciated.</p>