Report convolution size mismatch (#17436)
authorbhushan <bhushan.s.94@gmail.com>
Thu, 14 Mar 2019 13:29:03 +0000 (06:29 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 14 Mar 2019 13:35:29 +0000 (06:35 -0700)
commit16e50c78e7e06276e972ed8aa38fa5fb561637ec
tree54b3cdd2cdc7fb6c7642fcbe8dfe137c1490b5d4
parent8bd9465b79af9288d78deca8faddacbaa69a8abe
Report convolution size mismatch (#17436)

Summary:
1. Kernel size is larger than input
2. Expected output size to be less than zero

Test case added:
- invalid_conv1d
- Relevant test cases for conv2d and conv3d exists

Fixes #17247
Pull Request resolved: https://github.com/pytorch/pytorch/pull/17436

Reviewed By: mrshenli

Differential Revision: D14354272

Pulled By: fmassa

fbshipit-source-id: 94b98621aa03b1f60d151ef9399ed3da55d41b42
aten/src/ATen/native/Convolution.cpp
test/test_nn.py