When using TensorFlow Saver, is there a way to save an ordinary Python variable as well?
If not, what is the best solution when certain Python vars are helpful to save.
See Question&Answers more detail:osWhen using TensorFlow Saver, is there a way to save an ordinary Python variable as well?
If not, what is the best solution when certain Python vars are helpful to save.
See Question&Answers more detail:osYou can save/restore python variables with pickle.
import pickle
f = open('store.pckl', 'wb')
pickle.dump(your_var, f)
f.close()
f = open('store.pckl', 'rb')
your_var = pickle.load(f)
f.close()