Your code is quite hard to read as it’s not formatted, so please wrap it into three backticks ``` which would make debugging easier. 
Based on the error message the shape mismatch is most likely raised in the first nn.Conv1d layer, which expects an input in the shape [batch_size, channels, seq_len] while you are passing a 2D input to it.