In Keras, when should I use input_shape instead of input_dim?

Viewed 2634
1 Answers

To build on the comment and address the point of confusion. You can specify an unknown dimension using None to give varying values at runtime. For example, input_shape=(None, 10) means varying number of rows each with 10 entries. input_dim is just a short cut for specifying the final dimension and is there for convenience.

Related