I implemented a simple RNN using tensorflow, shown below:

```
cell = tf.contrib.rnn.BasicRNNCell(state_size)
cell = tf.contrib.rnn.DropoutWrapper(cell, output_keep_prob=keep_prob)

rnn_outputs, final_state = tf.nn.dynamic_rnn(cell, batch_size, dypte=tf.float32)

```

This works fine. But I'd like to log the weight variables to summary writer. Is there any way to do this?

By the way, do we use `tf.nn.rnn_cell.BasicRNNCell` or `tf.contrib.rnn.BasicRNNCell`? Or are they identical?