I apologize if this response sounds naive, but what exactly is meant by hidden[0] and how can I change it? At least as far as I can tell, the LSTM is set up properly and the inputs are given with batch first, as would be expected with batch_first = True, so how can I change the hidden[0] to the correct dimensions? Seems like this shouldn’t be needed–with batch_first = True and an input that does indeed have the batch first, it seems like it should work. Still, I am not an expert in PyTorch so there may be an additional step with the inputs or setting up the LSTM class that I am missing.
I appreciate your help. Thanks.