title: Tensorflow : Check failed: NDIMS == dims() (2 vs. 1)
body: <p>I get the following error after building the graph of my NN.
  when I try to execute :</p>
  
  <p><code>loss, _ = self._sess.run([self.loss_op, self.train_op], feed_dict=feed_dict)</code></p>
  
  <p>I get this error :</p>
  
  <blockquote>
    <p>F tensorflow/core/framework/tensor_shape.cc:36] Check failed: NDIMS ==
    dims() (2 vs. 1) Asking for tensor of 2 dimensions from a tensor of 1
    dimensions</p>
  </blockquote>
  
  <p>I don't succeed to know to which part of the graph this error is related to ...
  Because, normaly the graph is build, so shapes should be correct ... are not ?
  Do you have a idea ?</p>
  
  <p>Thanks in advance</p>