用一个非常简单的例子学习导出和加载模型: 导出 写一个y=a*x+b的运算,然后保存graph: import tensorflow as tf from tensorflow.python.framework.graph_util import convert_variables_to_constants with tf.Session() as sess: a = tf.Variable(5.0, name='a') x = tf.Variable(6.0, name='x') b = tf…