Right, for that to work, you must also change your w parameter to change the input channels from 100 to 1. With an input layout of 32, 1, 100, the sequence length is 100, but the number of channels is 1.
The 2 comes from the kernel_size (e.g., the 1d convolution that is two time steps wide).