Revert cudnn changes #23861 (#29329)
Summary:
Broken case:
```python
x = torch.randn(192,16,50).cuda()
x = x.permute(0,2,1).contiguous().permute(0,2,1)
m = torch.nn.Conv1d(
in_channels=16,
out_channels=32,
kernel_size=2,
bias=True,
).cuda()
m(x)
```
This reverts commit 8160f390cf678b3b98e0c1f73bd289ee3c96afcb.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/29329
Differential Revision: D18357674
Pulled By: VitalyFedyunin
fbshipit-source-id: cdd7e77e8dcbfc5f2ab3df54eb53ccfbf703b245