ValueError: If a RNN is stateful, it needs to know its batch size. Specify the batch size of your input tensors: - If using a Sequential model, specify the batch size by passing a `batch_input_shape` argument to your first layer. - If using the functional API, specify the batch size by passing a `batch_shape` argument to your Input layer.
老师,加上stateful参数后报错,在lstm里面加上batch_size还是会报错。