使用TensorBoard查看TensorFlow计算图

使用TensorFlow的基本步骤一般为:定义计算图,执行计算图,查看计算图

import tensorflow as tf#定义计算图g = tf.Graph()with g.as_default():    hello = tf.constant('hello',name = 'hello')    world = tf.constant('world',name = 'world')    helloworld = tf.string_join([hello,world],name = 'join',separator=' ')#执行计算图with tf.Session(graph = g) as sess:    print(sess.run(fetches = helloworld,feed_dict={}))#查看计算图with tf.summary.FileWriter('F:\lys\my_graph') as writer:    writer.add_graph(g)#1,在命令行中切换到 F:\lys\my_graph#2,运行 tensorboard --logdir=my_graph#3, 打开浏览器输入地址http://localhost:60061.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.

或者

writer = tf.summary.FileWriter('F:\lys\my_graph', tf.get_default_graph())writer.close()1.2.

查看

tensorflow 利用TensorBoard查看计算图_Graph

               



免责声明:本文系网络转载或改编,未找到原创作者,版权归原作者所有。如涉及版权,请联系删

QR Code
微信扫一扫,欢迎咨询~

联系我们
武汉格发信息技术有限公司
湖北省武汉市经开区科技园西路6号103孵化器
电话:155-2731-8020 座机:027-59821821
邮件:tanzw@gofarlic.com
Copyright © 2023 Gofarsoft Co.,Ltd. 保留所有权利
遇到许可问题?该如何解决!?
评估许可证实际采购量? 
不清楚软件许可证使用数据? 
收到软件厂商律师函!?  
想要少购买点许可证,节省费用? 
收到软件厂商侵权通告!?  
有正版license,但许可证不够用,需要新购? 
联系方式 155-2731-8020
预留信息,一起解决您的问题
* 姓名:
* 手机:

* 公司名称:

姓名不为空

手机不正确

公司不为空