title: How can I use integer that I supply into tf.placeholder(tf.int32)?
body: <p>I need to initialize a dynamic list which has length given by an integer that I will put into a placeholder through feed_dict. </p>
  
  <p>I set up the graph through this code:  </p>
  
  <pre><code>num_placeholder = tf.placeholder(tf.int32) 
  input_data = list() 
  for _ in range(num_placeholder):
      input_data.append(1) 
  </code></pre>
  
  <p>But get the following error: <code>'Tensor' object cannot be interpreted as an integer</code></p>
  
  <p>How can I use the <code>int</code> that I put into the <code>num_placeholder</code>? </p>