Skip to content

Commit

Permalink
Merge branch 'master' of github.com:carlthome/tensorflow-convlstm-cell
Browse files Browse the repository at this point in the history
  • Loading branch information
carlthome committed Apr 13, 2017
2 parents 9f5ee69 + b61d036 commit 24084a7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# TensorFlow ConvLSTM Cell [![Build Status](https://travis-ci.org/carlthome/tensorflow-convlstm-cell.svg?branch=master)](https://travis-ci.org/carlthome/tensorflow-convlstm-cell)
A ConvLSTM cell for TensorFlow's RNN API.

# Usage
```python
import tensorflow as tf
from cell import ConvLSTMCell

batch_size = 32
timesteps = 100
Expand All @@ -20,6 +18,7 @@ inputs = tf.placeholder(tf.float32, [batch_size, timesteps] + shape + [channels]
inputs = tf.transpose(inputs, (1, 0, 2, 3, 4))

# Add the ConvLSTM step.
from cell import ConvLSTMCell
cell = ConvLSTMCell(shape, filters, kernel)
outputs, state = tf.nn.dynamic_rnn(cell, inputs, dtype=inputs.dtype, time_major=True)

Expand Down

0 comments on commit 24084a7

Please sign in to comment.