tensorflow
花椒胡椒小辣椒
这个作者很懒,什么都没留下…
展开
-
tf.global_variables_initializer().run() AttributeError: ‘NoneType‘ object has no attribute ‘run‘
提示错误:in <module> tf.compat.v1.global_variables_initializer().run() AttributeError: 'NoneType' object has no attribute 'run'或者:The Session graph is empty. Add operations to the graph before calling run().的解决办法:在sess之前添加tf.compat.v1.disable_eager_exec原创 2020-07-17 17:42:48 · 1075 阅读 · 0 评论 -
Anaconda3+tensorflowgpu+keras安装+mac远程连接服务器的jupyter
背景:在服务器上搭建anaconda环境,已下载好以下文件:anaconda3.5.2.0-Linux-x86_64.shtensorflow_gpu-1.14.0-cp37-cp37m-manylinux1_x86_64.whlKeras-2.2.4-py2.py3-none-any.whlopencv_contrib_python-4.1.0.25-cp37-cp37m-manyli...原创 2019-12-10 17:55:09 · 715 阅读 · 0 评论 -
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated...
出现了一连串的警告: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([("qint...原创 2019-10-21 18:06:20 · 232 阅读 · 0 评论 -
mac安装tensorflow1.x,解决no module named 'tensorflow'
因为mac自带python2的环境,自己又安装了python3.7的环境,当利用pip直接安装时:pip3 install tensorflow安装的是最新的2.0.0版本的tf,但是又好像1.x版本和2.0版本差别及应用场景有些不同,所以又想要安装1.8版本的tf(tf官网1.x版本已经更新到1.15版本),所以又卸载了2.0版本的tf(不知道卸载干净了没有),参考了文章:https://...原创 2019-10-21 15:52:27 · 1771 阅读 · 0 评论