目录
在matlab下运行tensorflow的模型(没有详细了解)
基本架构-TensorFlow实现InceptionV3网络
python版本与tensorflow的版本配置
在pycharm中的python版本是3.8,里面的tensorflow的默认版本是2.5.0,与python3.8不适配,出现安装错误,anaconda里也是同样的情况。
查看conda可以安装的tensorflow版本
conda search --full --name tensorflow
错误
- 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)])
- 进入dtype.py,修改对应行的代码,把np.dtype([("quint8", np.uint8, 1)])修改为np.dtype([("quint8", np.uint8, (1,))])就完美解决了
- The TensorFlow library wasn't compiled to use SSE instructions, but these are available on your machine and could speed up CPU computations.
- 在导入tf之前输入
-
import os os.environ['TF_CPP_MIN_LOG_LEVEL']='2'
- 安装好tensorflow2.0之后,当使用Session时,报错AttributeError: module 'tensorflow' has no attribute 'Session':
- 解决:安装tf1.0以后的版本+python3.5以后的版本,具体版本对应如图1图2所示。