Hi,
I am trying to incorporate a conv1d() layer into a network I am using for classification.
When I use it like so, two different layers and re-shaping using view this works:

image.png981×857 47 KB

However, if I incorporate the layers into a single Net (see below), then I am not sure how to re-shape inside the Sequential layer itself. Maybe a transpose? not sure how to do it:

image.png954×693 38.9 KB

Full code is available here:
https://github.com/QuantScientist/Deep-Learning-Boot-Camp/blob/master/day%2002%20PyTORCH%20and%20PyCUDA/PyTorch/31-PyTorch-using-CONV1D-on-one-dimensional-data.ipynb 3
Many thanks