I will try to simplify the parameters of the input form as much as possible: In the case of LSTM (or in general for RNN), the input form can be provided either:
input_shape: input_shape = (input_length, input_dim)
input_length = input_dim = /. , , . , .. .
input_length = 50 ( )
input_dim = 10 ( )
model.add(LSTM(16, input_shape = (50,10)))
input_dim input_length
input_dim, , .. . .
model.add(LSTM(16, input_length= 50, input_dim =10)).
, ( ) batch_input_size. LSTM , . batch_input_size = (batch_size, input_length, input_dim)
model.add(LSTM(16,batch_input_size = (None,50,10))),
model.add(LSTM(16,batch_input_size = (32,50,10))) 32