title: how to store trained weights and biases in model A for use in model B in tensorflow
body: <p>Suppose I have construct a neural network A with a dictionary of weights and biases variable, and I have get specific values for weights and biases after training in neural network A. And I want to use these specific value to replace the <code>tf.Variable</code> in neural network B. How could I achieve this purpose? I have tried <code>tf.train.Saver()</code>, however, I don't know how to restore the weights and biases in another network B (in another file). I have also tried storing them using <code>pickle.dump</code>, however, I met with another problem, i.e. when restoring <code>weights</code> and <code>biases</code> using <code>pickle.load</code>, it said <code>dictionary</code> type is not hashable. Could anyone help me solve this problem?</p>