问题 How we can calculate the shape of conv1d layer in PyTorch. IS there any command to calculate size and shape of these layers in PyTorch. nn.Conv1d(depth_1, depth_2, kernel_size=kernel_size_2, stride=stride_size), nn.ReLU(), nn.MaxPool1d(kernel_size=2, stride=stride_size), nn.Dropout(0.25)``` 回答1: The output size can be calculated as shown in the documentation nn.Conv1d - Shape: The batch size remains unchanged and you already know the number of channels, since you specified them when creating