How to perform mean subtraction and normalization with Tensorflow
<p>On <a href="http://cs231n.github.io/neural-networks-2/" rel="noreferrer">http://cs231n.github.io/neural-networks-2/</a> it is mentioned that for convolutional neural networks it is preferred to preprocess data using mean subtraction and normalization techniques.</p>

<p>I was just wondering how would it be best approached using Tensorflow.</p>

<p>Mean substraction</p>

<pre><code>X -= np.mean(X)
</code></pre>

<p>Normalization</p>

<pre><code>X /= np.std(X, axis = 0)
</code></pre>