“synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.” problem in TensorFlow

前端 未结 7 1858
-上瘾入骨i
-上瘾入骨i 2020-12-08 18:43

I installed TensorFlow 1.10.1 but when I tried to import TensorFlow it said that I need TensorFlow version 1.10.0. Thus, I installed it and now I get the following warnings:

7条回答
  •  悲&欢浪女
    2020-12-08 19:18

    Or, one could just silence the warning:

    import warnings
    warnings.simplefilter(action='ignore', category=FutureWarning)
    import tensorflow as tf
    

    This approach was suggested here: How to suppress Pandas Future warning ?

提交回复
热议问题