保存:
saver = tf.train.Saver() with tf.Session() as sess: saver.save(sess,'路径/XXXX.ckpt')
加载:
saver = tf.train.Saver() with tf.Session() as sess: saver.restore(sess,'路径/XXXX.ckpt')