Tensorflow 1.x学习记录(六):保存和提取
from __future__ import print_functionimport tensorflow as tfimport numpy as np# 保存到文件夹中3 保存和读取的数据大小和类型要保持一致 W = tf.Variable([[1,2,3],[3,4,5]], dtype=tf.float32, name='weights') b = tf.Variable([[1,2,3]], dtype=tf.float32, name='biases') saver = tf







