What is the equivalent of np.std() in TensorFlow?
<p>Just looking for the equivalent of np.std() in TensorFlow to calculate the standard deviation of a tensor.</p>

<p>To get the mean and variance just use tf.nn.moments.</p>

<pre><code>mean, var = tf.nn.moments(x,axes=[1])
</code></pre>

<p>for more on tf.nn.moments params see <a href="https://www.tensorflow.org/versions/r0.10/api_docs/python/nn.html#moments" rel="nofollow">docs</a></p>

python tensorflow