保存模型
ZCJY
将来的你一定会感谢现在努力的你
展开
-
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 · 174 阅读 · 0 评论 -
tensorflow保存模型
import tensorflow as tf# with tf.device('/gpu:0'):# V1 = tf.Variable(tf.constant(1.0, shape=[1]), name='V1')# V2 = tf.Variable(tf.constant(2.0, shape=[1]), name='V2')# result = V1 + V...原创 2019-12-31 21:58:29 · 130 阅读 · 0 评论
分享