<p dir="auto">When basicConfig() from logging (python 2.7.11) is used, tensorflow duplicates output of logger (load logger twice).</p>
<p dir="auto">Example code and output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from logging import basicConfig
import tensorflow as tf
from tensorflow.contrib.learn import Estimator

basicConfig()
tf.logging.set_verbosity(tf.logging.INFO)

def cnn_model_fn(features,labels,mode):
    pass

if __name__ == '__main__':
    classifier = Estimator(
        model_fn=cnn_model_fn)


"><pre class="notranslate"><code class="notranslate">from logging import basicConfig
import tensorflow as tf
from tensorflow.contrib.learn import Estimator

basicConfig()
tf.logging.set_verbosity(tf.logging.INFO)

def cnn_model_fn(features,labels,mode):
    pass

if __name__ == '__main__':
    classifier = Estimator(
        model_fn=cnn_model_fn)



</code></pre></div>
<p dir="auto">output:<br>
WARNING:tensorflow:Using temporary folder as model directory: /var/folders/qn/z_b3zdss1g730kn_mlrwcwnc0000gn/T/tmpEdygBY<br>
WARNING:tensorflow:Using temporary folder as model directory: /var/folders/qn/z_b3zdss1g730kn_mlrwcwnc0000gn/T/tmpEdygBY<br>
INFO:tensorflow:Using default config.<br>
INFO:tensorflow:Using default config.</p>
<p dir="auto">I am trying transform a csv file consisting two columns: short_description, label. Description consists sentences from length 1 to 4 and label is just an integer number. The csv file has a size of 740 MBs however on converting it to TFRecord the size of the new file increased to 1.2GB, which I think is not correct since TFRecord files are supposed to have lesser size.<br>
For <code class="notranslate">short_description</code> (column 1), I am using BytesList and for <code class="notranslate">label</code> (coulmn2) I am using Int64List as was shown here in this <a href="https://www.tensorflow.org/beta/tutorials/load_data/tf_records" rel="nofollow">tutorial</a>. Just to be clear, the data read from the new TFRecord file is fine i.e. no problem. It is just the size of the file. Now I do not understand what the problem is. Please help. Thank you!</p>