I have the same question as TensorFlow saver - Saving an ordinary Python variable. I need to save and restore a python variable in tensorflow. But I can't find a way to do it. I need to restore my python variable, and then restore and use it to compute something else in the restored model, like:
accuracy = ('accuracy:0', feed_dict = {'data:0':my_data, '????:0':my_python_variable, 'label:0':my_labels})
'my_python_variable' is an input to compute the accuracy of the original training model. When I look at all the nodes, and also all the saved variables in the restored model, I can't find any node associated with this ordinary python variable. Any idea?