I正在运行"./buildTF.sh“,它在ubuntu终端上使用TensorFlow。并将错误获取为:
/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:516:
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated;
in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.发布于 2020-11-16 11:32:49
这些警告是经典的FutureWarning,这意味着您可以使用python库中的warnings模块对它们进行沉默:
import warnings
warnings.filterwarnings("ignore", message=r"Passing", category=FutureWarning)这将检查FutureWarning并沉默包含r"Passing"的消息。
发布于 2019-10-24 17:30:33
这是一条由于numpy版本而来的警告消息,卸载当前的numpy版本并将其更新为1.16.4。
# pip uninstall numpy
# pip install numpy==1.16.4多亏了耶莫达克
发布于 2021-05-13 15:53:31
如果它与张量流相关,可以使用以下代码:导入日志记录logging.getLogger('tensorflow').disabled = True
https://stackoverflow.com/questions/57704412
复制相似问题