reshaping 3D matrix into 2D matrix using tensorflow
<p>I have a 3D matrix of dimensions, <code>549x19x50</code> I need to create  a 2D matrix which gets me a <code>549x950</code> matrix.</p>

<p>What i did so far is using tensorflow;</p>

<pre><code>#data_3d is the 3D matrix
data_2d = tf.reshape(data_3d,[549,-1])
</code></pre>

<p>This prints out all the values of data_3d in the prompt and when I try to access data_2d it gives me an NameError</p>

<p>data_3d is a list of list of lists. Not a tensor or a ndarray. If we cant do this for lists, is there any way to easily convert lists to ndarrays?</p>

<p>Thanks in advance,</p>

<p>Bhashithe</p>