Find errors if any in tensorflow computation graph
According to me, reshaping of the input in perfectly ok. 
If you are changing the shape of the parameter just to fulfill the requirements of the method parameter or for further processing of the logic, it is perfectly ok, as long as you know what you are sending and how it will be processed by further code. 

But in feed_dict, input and placeholder dimensions should be same otherwise you will get the compilation error.


  Note: In case you are not sure about the exact dimensions of your
  placeholder, you can use [None] as a dimension value while declaring a
  placeholder