Skip to content

conv1d needs additional shape checks #4607

@soumith

Description

@soumith
   import torch.nn as nn
   from torch import autograd
   input = autograd.Variable(torch.randn(1, 1, 2))
   conv = nn.Conv1d(1, 1, 3, stride=2)
   conv(input)

Should error out but returns without error (returns uninitialized output).
Reported here: https://discuss.pytorch.org/t/minimum-kernel-size-convolution-solved-by-striding/12162

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