Get the value of some weights in a model trained by TensorFlow
In TensorFlow, trained weights are represented by tf.Variable objects. If you created a tf.Variable—e.g. called v—yourself, you can get its value as a NumPy array by calling sess.run(v) (where sess is a tf.Session). If you do not currently have a pointer to the tf.Variable, you can get a list of the trainable variables in the … Read more