<h3 dir="auto">System information</h3>
<ul dir="auto">
<li>I am using the stock DNNClassifier in contrib/learn. The warning is present in every instance where DNNClassifier is called.</li>
<li>Present in OSX (Mac OS 10.12.5) and Linux (Ubuntu 16.04)</li>
<li><strong>TensorFlow installed from (source or binary)</strong>: Present both on binary and when compiled from source</li>
<li><strong>TensorFlow version (use command below)</strong>: v1.2.0 (release) and v1.2.0-1371-g97af82d53 1.2.0</li>
<li><strong>Bazel version (if compiling from source)</strong>: 0.5.1</li>
<li><strong>CUDA/cuDNN version</strong>: N/A</li>
<li><strong>GPU model and memory</strong>: N/A</li>
<li><strong>Exact command to reproduce</strong>: Call the DNN classifier as indicated in <a href="https://www.tensorflow.org/api_docs/python/tf/contrib/learn/DNNClassifier" rel="nofollow">https://www.tensorflow.org/api_docs/python/tf/contrib/learn/DNNClassifier</a></li>
</ul>
<h3 dir="auto">Describe the problem</h3>
<p dir="auto">A warning for a deprecated feature is cluttering the logs when using the DNNClassifier. It is due to the use of the deprecated feature scalar_summary while logging. While this has been deprecated in 2016-11-30, it is still used in tensorflow/contrib/learn/python/learn/estimators/head.py:642<br>
This bug report request for updating the the current tf.summary.scalar, as indicated. The usability of the product is much improved as a consequence.</p>
<h3 dir="auto">Logs</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="WARNING:tensorflow:From /opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tensorflow/contrib/learn/python/learn/estimators/head.py:642: scalar_summary (from tensorflow.python.ops.logging_ops) is deprecated and will be removed after 2016-11-30.
Instructions for updating:
Please switch to tf.summary.scalar. Note that tf.summary.scalar uses the node name instead of the tag. This means that TensorFlow will automatically de-duplicate summary names based on the scope they are created in. Also, passing a tensor or list of tags to a scalar summary op is no longer supported.
"><pre class="notranslate"><code class="notranslate">WARNING:tensorflow:From /opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tensorflow/contrib/learn/python/learn/estimators/head.py:642: scalar_summary (from tensorflow.python.ops.logging_ops) is deprecated and will be removed after 2016-11-30.
Instructions for updating:
Please switch to tf.summary.scalar. Note that tf.summary.scalar uses the node name instead of the tag. This means that TensorFlow will automatically de-duplicate summary names based on the scope they are created in. Also, passing a tensor or list of tags to a scalar summary op is no longer supported.

</code></pre></div>
<h3 dir="auto">Source code</h3>
<p dir="auto">tensorflow/contrib/learn/python/learn/estimators/head.py:642</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="    # Uses the deprecated API to set the tag explicitly.
    # Without it, training and eval losses will show up in different graphs.
    logging_ops.scalar_summary(
        _summary_key(head_name, mkey.LOSS), weighted_average_loss)"><pre class="notranslate"><code class="notranslate">    # Uses the deprecated API to set the tag explicitly.
    # Without it, training and eval losses will show up in different graphs.
    logging_ops.scalar_summary(
        _summary_key(head_name, mkey.LOSS), weighted_average_loss)
</code></pre></div>
<p dir="auto">In the Updates section of the new TensorFlow website, two news have the same text:</p>
<p dir="auto"><a href="https://www.tensorflow.org/" rel="nofollow"><img src="https://cloud.githubusercontent.com/assets/1140359/21177890/64615340-c1ed-11e6-82bc-c440ebc9dfd2.png" alt="image" style="max-width: 100%;"></a></p>