访问RNN权重 - Tensorflow

时间:2017-03-26 14:19:55

标签: python tensorflow lstm recurrent-neural-network

我正在使用tf.python.ops.rnn_cell.GRUCell

output, state = tf.nn.dynamic_rnn(
        GRUCell(HID_DIM),
        sequence,
        dtype=tf.float32,
        sequence_length=length(sequence)
)

如何获得此GRUCell的权重。我需要看到它们进行调试。

1 个答案:

答案 0 :(得分:2)

可以使用以下方法打印当前会话中所有变量的值:

data