please, I have an input of the shape
[1, 2, 20, 135]
and I have a model
Net = torch.nn.Conv1d(in_channels=2, out_channels=8, kernel_size=(20, 1), stride=1, bias=True)
when I execute this line
Net(input)
I get the following error:
RuntimeError: Expected 2D (unbatched) or 3D (batched) input to conv1d, but got input of size: [1, 2, 20, 135]
how I can solve this problem? and thank you