I have built an LSTM network for time series classification where the input dimension for each sequence is (18,40) and the output dimension is (18,20). Also, I batch sequences w