make InstanceNorm1d raise an error if the input is 2D (#11992)
authorcrcrpar <masaki.kozuki.2014@gmail.com>
Fri, 29 Mar 2019 13:41:49 +0000 (06:41 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 29 Mar 2019 13:50:04 +0000 (06:50 -0700)
commitcf444f354450821a9e4288a8eb32a2a6571754e9
tree563f699004333a25ec5d8650d0373707337ee49d
parentc189eba3e139aca43974e63dba9fb972e88c9d74
make InstanceNorm1d raise an error if the input is 2D (#11992)

Summary:
Resolves #11991 .

Any comment is welcome.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/11992

Differential Revision: D14680974

Pulled By: soumith

fbshipit-source-id: 8e287a9c32bf43b35edc9d127f16ed6b72c61d91
torch/nn/modules/instancenorm.py