Skip to content

About the exercise #1

Description

@Puff-Wen

Hi,

I added a conv as following

    self.conv1 = nn.Conv2d(1, 6, kernel_size=(5,5),stride=1, padding=0)
    self.conv1_5 = nn.Conv2d(6, 12, kernel_size=(5,5),stride=1, padding=1)
    self.conv2 = nn.Conv2d(12, 16, kernel_size=(5,5),stride=1, padding=0)

and

    out = F.relu(self.conv1_5(out))

in the forward function. Then I got the error message as following.

RuntimeError: Given input size: (16x1x1). Calculated output size: (16x0x0). Output size is too small at /pytorch/torch/lib/THCUNN/generic/SpatialDilatedMaxPooling.cu:69

Would you please help to give some clues?
Thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions