Tflearn: Warnings about dependencies on deprecated TF features

Created on 15 Dec 2016  路  4Comments  路  Source: tflearn/tflearn

Seeing many warnings like this when running LSTM:

WARNING:tensorflow:From .../tflearn/helpers/trainer.py:210 in fit.: SummaryWriter.__init__ (from tensorflow.python.training.summary_io) is deprecated and will be removed after 2016-11-30

WARNING:tensorflow:From .../tflearn/summaries.py:46 in get_summary.: 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.

WARNING:tensorflow:From .../tflearn/helpers/summarizer.py:89 in summarize.: merge_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.merge.

WARNING:tensorflow:From .../tflearn/helpers/trainer.py:130 in __init__.: initialize_all_variables (from tensorflow.python.ops.variables) is deprecated and will be removed after 2017-03-02.
Instructions for updating:
Use tf.global_variables_initializer instead.

Most helpful comment

@tobegit3hub I think warning can be safely ignored. If you just want to see the result of the training like me and doesn't really need to see all the DEBUG, INFO, WARN logging, you can put this in your code after imports
tf.logging.set_verbosity(tf.logging.ERROR)

All 4 comments

Please update TFLearn or downgrade to TensorFlow 0.11. We are currently updating TFLearn to make it compatible with TF 0.12.

Any detail or commits about how to fix this warning? @aymericdamien

@tobegit3hub I think warning can be safely ignored. If you just want to see the result of the training like me and doesn't really need to see all the DEBUG, INFO, WARN logging, you can put this in your code after imports
tf.logging.set_verbosity(tf.logging.ERROR)

@shadofren soon as I seen that stack trace pointing to logging and remembered your comment...I put your change in and worked like a charm. Thank you!

Was this page helpful?
0 / 5 - 0 ratings