
jupyter notebook
文章平均质量分 70
qq_40758284
这个作者很懒,什么都没留下…
展开
-
tensorboard网址打不开:No dashboards are active for the current data set.
在运行tensorboard的时候,首先要编辑一段代码生成日志文件import tensorflow as tf#清除default graph和不断增加的结点tf.reset_default_graph()#Logdir改为自己机器上的合适路径logdir='D:/logs'#定义一个简单的计算图,实现向量加法的操作input1 = tf.constant([1.0,2....原创 2019-12-05 09:59:21 · 228 阅读 · 0 评论 -
RuntimeError: The Session graph is empty. Add operations to the graph before calling run().
安装tensorflow后,进行测试import tensorflow as tfhello = tf.constant('hello,tensorflow!')sess = tf.Session()print(sess.run(hello))但是发现有错误,因为版本问题,我的tensorflow版本是2.0.0,比较新可以通过下面的方法查看tensorflow版本所以...原创 2019-11-29 23:30:45 · 911 阅读 · 6 评论