title: Learning: Vector input in Tensorflow
body: <p>Many of the examples which I have learnt to code are of scalar input numbers. I want to try vector input. With example of <a href="https://github.com/tencia/stocks_rnn" rel="nofollow">https://github.com/tencia/stocks_rnn</a></p>
  
  <p>I tried to change the code to input [x,x^2] instead of x, with following two lines of changes. But I get error.</p>
  
  <p>in STOCKLSTM: 
      self._input_data = tf.placeholder(tf.float32, [2, batch_size, num_steps])</p>
  
  <p>In main/Epoch
      cost, state, _ = session.run([m.cost, m.final_state, eval_op],
                               {m.input_data: (x,x**2), m.targets: y, m.initial_state: state})</p>
  
  <p>ERROR:<br>
      ValueError: Cannot feed value of shape (2, 30, 10) for Tensor u'model/Placeholder:0', which has shape '(30, 10)'</p>
  
  <p>Any ideas if thought direction is correct? I feel severely punished for bunking tensor classes in grad :(</p>
  
  <p>Karma</p>