My conv module
is:
return torch.nn.Sequential(
torch.nn.Conv1d(
in_channels=in_channels,
out_channels=in_channels,
kernel_size=2,
stride=1,
dilation=1,
padding=1
),
torch.nn.ReLU(),
torch.nn.Conv1d(
in_channels=in_channels,
out_channels=in_channels,
kernel_size=2,
stride=1,
dilation=2,
padding=1
),
torch.nn.ReLU(),
torch.nn.Conv1d(
in_channels=in_channels,
out_channels=in_channels,
kernel_size=2,
stride=1,
dilation=4,
padding=1
),
torch.nn.ReLU()
)
And in forward
, I have:
down_out = self.downscale_time_conv(inputs)
inputs
has a .size
of torch.Size([8, 161, 24])
. Iād expect down_out
to have the same size, but instead it has: torch.Size([8, 161, 23])
Where did that last element go?