该项目中把tf的数据存储和读取抽取出两个函数,方便开发,思想和代码值得借迁 一.存储 def save_variables(save_path, variables=None, sess=None): import joblib sess = sess or get_session() variables = variables or tf.get_collection(tf.GraphKeys.GLOBAL_VARIABLES) ps = sess.run(variables) save_dict = {v.name: value for v, val