I don’t know where the error is exactly raised, but both models use a 1D (transposed) convolution, which expects an input in the shape [batch_size, channels, seq_len].
Based on your input it seems you are using [batch_size=262144, channels=1], which is missing the temporal dimension so you might need to unsqueeze it.
If you get stuck, please post a minimal, executable code snippet by wrapping it into three backticks ```, which would make debugging easier.