1 Star 0 Fork 1

北部湾的落日 / imageProcessing

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
study_1.py 657 Bytes
一键复制 编辑 原始数据 按行查看 历史
北部湾的落日 提交于 2018-05-09 09:58 . Initial commit
import tensorflow as tf
# Create some variables.
v1 = tf.Variable(0, name="v1")
v2 = tf.Variable(1, name="v2")
...
# Add an op to initialize the variables.
init_op = tf.initialize_all_variables()
# Add ops to save and restore all the variables.
saver = tf.train.Saver()
# Later, launch the model, initialize the variables, do some work, save the
# variables to disk.
with tf.Session() as sess:
sess.run(init_op)
# Do some work with the model.
# Save the variables to disk.
save_path = saver.save(sess, "./tensorflow/tmp/model.ckpt")
print("Model saved in file: ", save_path)
#saver.restore(sess,'./tmp/model.ckpt')
#print("Model restored.")
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cbyh1313/imageProcessing.git
git@gitee.com:cbyh1313/imageProcessing.git
cbyh1313
imageProcessing
imageProcessing
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891