Dear all,
I am trying to inspect the hidden states of the recurrent part of the network, but I cannot find a way to retrieve the relevant tensors. Is there any way to do that?
A good starting point for me could be to retrieve the tensors corresponding to the output states as returned by tf.nn.bidirectional_dynamic_rnn(...)
as in:
My plan is to use the tensor name to retrieve the tensor value using tf.Graph.get_tensor_by_name()
. I started by retrieving all available names using
graph_def = tf.GraphDef()
graph_def.ParseFromString(f.read())
names = [n.name for n in graph_def.node]
but to the best of my understanding this list does not contain the name of the tensors I’m looking for. Am I on the right track?
Thanks in advance.
Roberto