Skip to content

Commit b2f91fb

Browse files
authored
Update README.md
1 parent eb02cf0 commit b2f91fb

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,15 @@ cell = ConvGRUCell(shape, filters, kernel)
2525
outputs, state = tf.nn.dynamic_rnn(cell, inputs, dtype=inputs.dtype)
2626

2727
# It's also possible to enter 2D input or 4D input instead of 3D.
28-
features = 100
29-
inputs = tf.placeholder(tf.float32, [timesteps, batch_size, features, channels])
30-
cell = ConvLSTMCell([features], filters, kernel=[3])
28+
shape = [100]
29+
kernel = [3]
30+
inputs = tf.placeholder(tf.float32, [batch_size, timesteps] + shape + [channels])
31+
cell = ConvLSTMCell(shape, filters, kernel)
3132
outputs, state = tf.nn.bidirectional_dynamic_rnn(cell, cell, inputs, dtype=inputs.dtype)
3233

3334
shape = [50, 50, 50]
3435
kernel = [1, 3, 5]
35-
inputs = tf.placeholder(tf.float32, [timesteps, batch_size] + shape + [channels])
36+
inputs = tf.placeholder(tf.float32, [batch_size, timesteps] + shape + [channels])
3637
cell = ConvGRUCell(shape, filters, kernel)
3738
outputs, state= tf.nn.bidirectional_dynamic_rnn(cell, cell, inputs, dtype=inputs.dtype)
3839
```

0 commit comments

Comments
 (0)