are you able to figure out the first error here. in my previous post?
Actually let me try to clarify : I have calculated the out tensor size after three con1d layers as
[40,100,7494]
where 40 is batch size, 100 is the out features of conv layer and 7494 is the output of the sequence…right?
Now I want to move further for LSTM layer here I am doing this:
rnn = nn.LSTM(7494, 60, 2,bidirectional=True, dropout=0.5, batch_first=True)
output= rnn(O3)
I have replaced the input size as 7494 (not 100), As it was giving error.
Here the output is a tuple. Now cud you plz tell me how to check the output size further for TransformerEncoderLayer and final linear layer.
I think this shape error is arising here only.
EROOR:
Given groups=1, weight of size [64, 7, 3], expected input[1, 1, 60000] to have 7 channels, but got 1 channels instead