<p dir="auto">I wanted to exclude all of the tensorflow logs in output. I searched and found that one or both of these setting should work:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="os.environ['TF_CPP_MIN_LOG_LEVEL']='3'
tf.logging.set_verbosity(tf.logging.ERROR)"><pre class="notranslate"><code class="notranslate">os.environ['TF_CPP_MIN_LOG_LEVEL']='3'
tf.logging.set_verbosity(tf.logging.ERROR)
</code></pre></div>
<p dir="auto">Though, I am still getting network loading logs, e.g.:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2019-02-28 23:51:13,520:INFO::Restoring parameters from ./pre_model/classic/brain4/network--6009999"><pre class="notranslate"><code class="notranslate">2019-02-28 23:51:13,520:INFO::Restoring parameters from ./pre_model/classic/brain4/network--6009999
</code></pre></div>
<p dir="auto">I was wondering why the <code class="notranslate">INFO</code> logs are still there. I also searched a lot about it and read the previous issues, but neither had a certain solution for this problem.</p>
<ul dir="auto">
<li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>: Yes</li>
<li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Debian 8.7</li>
<li><strong>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device</strong>: NA</li>
<li><strong>TensorFlow installed from (source or binary)</strong>: binary</li>
<li><strong>TensorFlow version (use command below)</strong>: 1.10.1</li>
<li><strong>Python version</strong>: 2.7</li>
<li><strong>Bazel version (if compiling from source)</strong>: NA</li>
<li><strong>GCC/Compiler version (if compiling from source)</strong>: NA</li>
<li><strong>CUDA/cuDNN version</strong>: 9.0</li>
<li><strong>GPU model and memory</strong>: K80 12GB</li>
<li><strong>Exact command to reproduce</strong>:</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="checkpoint = tf.train.get_checkpoint_state(os.path.join(directory, saved_model_address))
tf.train.Saver.restore(session, checkpoint.model_checkpoint_path)
"><pre class="notranslate"><code class="notranslate">checkpoint = tf.train.get_checkpoint_state(os.path.join(directory, saved_model_address))
tf.train.Saver.restore(session, checkpoint.model_checkpoint_path)

</code></pre></div>
<p dir="auto">in which <code class="notranslate">saved_model_address</code> is the address of the saved model, and session is an instance of  tf.Session() which the model is created in.</p>
<p dir="auto">In the softmax documentation on page:</p>
<p dir="auto"><a href="http://tensorflow.org/tutorials/mnist/beginners/index.md" rel="nofollow">http://tensorflow.org/tutorials/mnist/beginners/index.md</a></p>
<p dir="auto">There is a set of images showing an example of what the function is doing:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5950006/11081692/e3c5dc3c-87ec-11e5-8e9a-6ed0b0ace7c6.png"><img src="https://cloud.githubusercontent.com/assets/5950006/11081692/e3c5dc3c-87ec-11e5-8e9a-6ed0b0ace7c6.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Then the "xs" are pulled out so that we have the vectors Wx. But the coefficients in the image above is incorrect. If the image below, also take form the docs, shows the true form then the equations in the above image should be:</p>
<p dir="auto">y1 = W1,1<strong>x1</strong> + W1,2<strong>x2</strong> + W1,3<strong>x3</strong> + b1</p>
<p dir="auto">instead of:</p>
<p dir="auto">y1 = W1,1<strong>x1</strong> + W1,2<strong>x1</strong> + W1,3<strong>x1</strong> + b1</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5950006/11081715/38e3fdb6-87ed-11e5-8621-ac80926f2c03.png"><img src="https://cloud.githubusercontent.com/assets/5950006/11081715/38e3fdb6-87ed-11e5-8621-ac80926f2c03.png" alt="image" style="max-width: 100%;"></a></p>