A TensorFlow variable is the best way to represent shared, persistent state manipulated by your program. https://www.tensorflow.org/guide/variables