Could you give the full code sample please? I’m not sure what Y_hat is supposed to be here?
It looks like your input does not have the right dimensions as the first conv1d should have 3 input channels not 708. You want batch x channels x width for the input.