0

WARNING:tensorflow: The TensorFlow contrib module will not be included in TensorFlow 2.0. For more information, please see:

WARNING:tensorflow:From /usr/local/lib/python3.7/dist-packages/tensorflow_core/contrib/layers/python/layers/layers.py:1612: Layer.apply (from tensorflow.python.keras.engine.base_layer) is deprecated and will be removed in a future version. Instructions for updating: Please use layer.__call__ method instead.

  • 1
    Those are just deprecation warnings, they simply mean what they say no more, they are helpful for writing maintainable code, you may be able to suppress them like [here](https://stackoverflow.com/questions/48608776/how-to-suppress-tensorflow-warning-displayed-in-result) or [here](https://stackoverflow.com/questions/47068709/your-cpu-supports-instructions-that-this-tensorflow-binary-was-not-compiled-to-u). – Mohamed abdelmagid Oct 15 '21 at 15:06

1 Answers1

0

Those are the deprecation warnings as commented by @aim97.

You can turn off the warnings by using

import logging, os
logging.disable(logging.WARNING)
os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3"
import tensorflow as tf