Slicing a tensor by using indices in Tensorflow : <p>Basically I have a 2d array and I want to do this nice numpy-like thing</p>

<pre><code>noise_spec[:rows,:cols]
</code></pre>

<p>in Tensorflow. Here rows and cols are just two integers.</p>
