我安装了TensorFlow 1.10.1,但是当我尝试导入TensorFlow时,它说我需要TensorFlow版本1.10.0。因此,我安装了它,现在收到以下警告:
>>> import tensorflow
C:\Users\PC\Anaconda3\envs\tut\lib\site-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'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
C:\Users\PC\Anaconda3\envs\tut\lib\site-packages\tensorflow\python\framework\dtypes.py:517: 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'.
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
C:\Users\PC\Anaconda3\envs\tut\lib\site-packages\tensorflow\python\framework\dtypes.py:518: FutureWarning: Passing (type, 1) or '1type' …Run Code Online (Sandbox Code Playgroud) 我已经在Python 3.7.4 [64位]中安装了tensorflow和numpy。尝试导入时,收到以下警告:
/home/user/.local/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:516:FutureWarning:不赞成将(type,1)或'1type'作为type的同义词使用;在numpy的未来版本中,它将被理解为(type,(1,))/'(1,)type'。_np_qint8 = np.dtype([(“ qint8”,np.int8,1)])/home/user/.local/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:517: FutureWarning:不建议使用(type,1)或'1type'作为type的同义词;在numpy的未来版本中,它将被理解为(type,(1,))/'(1,)type'。_np_quint8 = np.dtype([(“ quint8”,np.uint8,1)])/home/user/.local/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:518: FutureWarning:不建议使用(type,1)或'1type'作为type的同义词;在numpy的未来版本中,它将被理解为(type,(1,))/'(1,)type'。_np_qint16 = np.dtype([[“” qint16“,np.int16,1)])/home/user/.local/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:519: FutureWarning:不建议使用(type,1)或'1type'作为type的同义词;在numpy的未来版本中,它将被理解为(type,(1,))/'(1,)type'。_np_quint16 = np.dtype([(“ quint16”,np.uint16,1)])/home/user/.local/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:520: FutureWarning:不建议使用(type,1)或'1type'作为type的同义词;在numpy的未来版本中,它将被理解为(type,(1,))/'(1,)type'。_np_qint32 = np.dtype([(“ qint32”,np.int32,1)])/ home / user /。local / lib / python3.7 / site-packages / tensorflow / python / framework / dtypes.py:525:FutureWarning:不赞成将(type,1)或'1type'作为type的同义词传递;在numpy的未来版本中,它将被理解为(type,(1,))/'(1,)type'。np_resource = np.dtype([(“ resource”,np.ubyte,1)])
/home/user/.local/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:541:FutureWarning:不建议将(type,1)或'1type'作为type的同义词使用;在numpy的未来版本中,它将被理解为(type,(1,))/'(1,)type'。_np_qint8 = np.dtype([(“ qint8”,np.int8,1)])/home/user/.local/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:542: FutureWarning:不建议使用(type,1)或'1type'作为type的同义词;在numpy的未来版本中,它将被理解为(type,(1,))/'(1,)type'。_np_quint8 = np.dtype([(“ quint8”,np.uint8,1)])/home/user/.local/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:543: FutureWarning:传递(类型1)或“ 1type” 不推荐使用type的同义词;在numpy的未来版本中,它将被理解为(type,(1,))/'(1,)type'。_np_qint16 = np.dtype([(“ qint16”,np.int16,1)])/home/user/.local/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:544: FutureWarning:不建议使用(type,1)或'1type'作为type的同义词;在numpy的未来版本中,它将被理解为(type,(1,))/'(1,)type'。_np_quint16 = np.dtype([[“” quint16“,np.uint16,1)])/home/user/.local/lib/python3.7/site-packages/tensorboard/compat/tensorflow_stub/dtypes.py:545: FutureWarning:不建议使用(type,1)或'1type'作为type的同义词;在numpy的未来版本中,它将被理解为(type,(1,))/'(1,)type'。_np_qint32 = np.dtype([(“
我有以下版本-numpy- 1.17.0 tensorflow- 1.14.0
如何解决张量流中不同数据类型的警告?
谢谢!