简体   繁体   English

当我安装 tensorflow 1.15 时,我不断面临这样的警告

[英]When I install my tensorflow 1.15 then I am facing such warning continuously

WARNING:tensorflow: The TensorFlow contrib module will not be included in TensorFlow 2.0.警告:tensorflow:TensorFlow contrib 模块将不包含在 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.警告:tensorflow:来自/usr/local/lib/python3.7/dist-packages/tensorflow_core/contrib/layers/python/layers/layers.py:1612:Layer.apply(来自tensorflow.python.keras.engine.base_layer ) 已弃用,并将在未来版本中删除。 Instructions for updating: Please use layer.__call__ method instead.更新说明:请改用layer.__call__方法。

Those are the deprecation warnings as commented by @aim97.这些是@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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我创建了一个 venv 并尝试安装 tensorflow 1.15 但仍然是同样的错误 - I created a venv and tried to install tensorflow 1.15 but still the same error 我无法安装 Tensorflow 版本 1.15 到 pip - I cannot install Tensorflow Version 1.15 through pip 为什么我在运行此脚本时收到 tensorflow 警告? - why am i getting a tensorflow warning when running this script? 当我在做 pip 安装 tensorflow 时,我的 python 版本是 3.8.5 出现了各种冲突 - My python version is 3.8.5 when i am doing pip install tensorflow various conflicts has been arised 我收到警告:tensorflow:From in python - I am getting WARNING:tensorflow:From in python 我的代码逻辑遇到问题 - I am facing problem with logic of my code RPI:无法安装张量流==1.15 - RPI: Cannot install tensorflow==1.15 导入 tensorflow 2.0.0 时遇到错误 - I am facing an error while importing tensorflow 2.0.0 为什么在使用 tensorflow 时出现警告/错误(使用功能 API 并且未实现错误) - why am I getting warning/error when working with tensorflow (use functional API and not implemented error) 为什么我会收到这些“警告:目标目录<directory>已经存在。”当我 pip 安装模块时? - Why am I getting these "WARNING: Target Directory <directory> already exists." when I pip install a module?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM