keras에 상태 저장 LSTM을 생성하려고합니다. 나는 다음과 같은 명령어를 주었다 :Keras 상태 저장 LSTM 오류
model.add(LSTM(300,input_dim=4,activation='tanh',stateful=True,batch_input_shape=(19,13,4),return_sequences=True))
배치 사이즈 = 19. 그러나 실행에 내가 내 스크립트에서 아무 곳이나 배치 크기 (32)를 지정하지 않은 오류를
Exception: In a stateful network, you should only pass inputs with a number of samples that can be divided by the batch size. Found: 8816 samples. Batch size: 32.
를 제공하고 19 8816
시도했습니다. 그러나 다시 동일한 오류가 발생합니다 –
그런 다음 오류를 복제 한 최소한의 작동 예제로 질문을 업데이트해야합니다. – nemo