cnn_captcha icon indicating copy to clipboard operation
cnn_captcha copied to clipboard

大佬,有tensorflow2.0的版本吗?

Open YouSmart2016 opened this issue 4 years ago • 7 comments

YouSmart2016 avatar Aug 19 '20 13:08 YouSmart2016

同问

zgpinguo avatar Sep 05 '20 09:09 zgpinguo

pip 安装2.0以上的库之后,使用tf_upgrade_v2 --intree my_project/ --outtree my_project_v2/ --reportfile report.txt命令,重建项目文件,然后在调用tensorflow库的文件里面添加tf.compat.v1.disable_eager_execution()就可以使用tensorflow2.0版本的了

85757 avatar Sep 14 '20 09:09 85757

在调用tensorflow库的文件里面添加tf.compat.v1.disable_eager_execution()

在调用tensorflow库的文件里面添加tf.compat.v1.disable_eager_execution() 这个怎么操作?每个import tensorflow 下一行都这样加吗?

gclsoft avatar Sep 27 '20 02:09 gclsoft

直接在调用tf库的文件中调用这一行代码就可以了,我也是刚用到这个库,不是很熟悉,在每个调用tf库的文件中都加了这一行。

import tensorflow as tf
tf.compat.v1.disable_eager_execution()
# 下面写运行代码

85757 avatar Sep 27 '20 02:09 85757

请问楼上成功跑起来的用的python 多少版本的

forktopot avatar Oct 07 '20 10:10 forktopot

我用的是3.7.5版本的

85757 avatar Oct 09 '20 01:10 85757

用py3.6,mac安转tensorflow1.7.0的时候试试手机热点!!!她妈的

asihacker avatar Jan 29 '21 09:01 asihacker