Converting Python List to Numpy Array InPlace
<p>I have a python list that's huge (16 GB) and I want to convert it to numpy array, inplace. I can't afford this statement</p>

<pre><code>huge_array = np.array(huge_list).astype(np.float16)
</code></pre>

<p>I'm looking for some efficient ways to transform this <code>huge_list</code> into <code>numpy array</code> without making it's copy.</p>

<p>Can anyone suggest an efficient method to do this? that might involve saving the list to disk first and then loading it as numpy array, I'm ok with that.</p>

<p>I'll highly appreciate any help.</p>

<p>EDIT 1 : <code>huge_list</code> is an in memory python list that's created on runtime so it's already taking 16GB. I need to convert it to <code>numpy float16</code> array.</p>