![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
格式化
ZCJY
将来的你一定会感谢现在努力的你
展开
-
tensorflow持久化数据格式(2)
所有变量的值都存在下图两个变量中。 查看这两个文件的内容: # 查看变量信息 # 读取checkpoint文件,.data,.index可以省略 reader = tf.train.NewCheckpointReader(r'E:\ZC\procedure\tensorflow_gpu\model\model.ckpt') # 获取变量名,变量的维度,变量的值 global_variable ...原创 2020-01-03 11:49:02 · 86 阅读 · 0 评论 -
tensorflow持续化数据格式(1)
1、保存查看持久化数据 import tensorflow as tf # 如果你使用的是CPU版的tensorflow可以将with tf.device('/gpu:0'):去掉 with tf.device('/gpu:0'): V1 = tf.Variable(tf.constant(1.0, shape=[1]), name='V1') V2 = tf.Variable(t...原创 2020-01-01 14:17:44 · 136 阅读 · 0 评论