Please correct me if I understood this wrong.
Say, the penultimate layer after multiple Conv1D and Maxpool operations is of size (10, 100, 5) where:
batch_size = 10
filters(out_channel) = 100
seq_len = 5

CNN -> Linear
So, I will obtain the max (or mean) of the last dimension ie. the one with 5 elements. So, the shape now would be (10, 100). This (10, 100) layer will now be flattened into (1, 1000) layer and passed into the linear layer to obtain the output ie. a single class.
CNN -> RNN -> Linear
How would I go about doing something similar for CNN->RNN->Linear?