I'm using python2 with keras, tensorflow.
x = Input((32,), name="input1")
I think x's shape is (32,) but print(x) 's result is that 'shape(?,32)'. What is means of 'shape(?,32)'? And '?' means what and 32 means what..?
When you define tour input with Input((32,), name="input1")
you are telling Keras that each input will be 1-dimensional with size 32. However you might send more than one input during training/predicting. For example if you send in 10 samples, each with length 32, you will actually send in a tensor with shape (10, 32)
.
Since the topology of the network is not dependent on the number of samples you send in, the shape may vary and is presented as (?,32)
where ?
is the number of samples.