
tensorflow
coocoky
记录点点,书写滴滴
展开
-
查看并升级tensorflow版本
python版本import tensorflow as tftf.__version__查询tensorflow安装路径为:tf.__path__升级pip install --upgrade tensorflow-gpu## 升级到固定版本pip install tensorflow-gpu==1.7.0...原创 2018-09-30 11:23:45 · 6937 阅读 · 0 评论 -
docker中实验 tensorboard 显示pb图结构
实验在docker中进行, 所以 ip 为 0.0.0.0import tensorflow as tffrom tensorflow.python.platform import gfilegraph = tf.get_default_graph()graphdef = graph.as_graph_def()graphdef.ParseFromString(gfile.FastGF...原创 2018-10-10 15:38:50 · 590 阅读 · 0 评论 -
tensorflow 打印pb模型的所有节点
只有pd模型文件, 打印所有节点from tensorflow.python.framework import tensor_utilfrom google.protobuf import text_formatimport tensorflow as tffrom tensorflow.python.platform import gfilefrom tensorflow.python...原创 2018-10-10 16:28:10 · 8524 阅读 · 0 评论