title: cuDNN error: CUDNN_STATUS_BAD_PARAM.Can someone explain why i am getting this error and how can i correct it?
body: <p>I am trying to implement a Character LSTM using Pytorch.But I am getting cudnn_status_bad_params errors.This is the training loop.I getting error on line output = model(input_seq).</p>
  
  <pre><code>for epoch in tqdm(range(epochs)):
    for i in range(len(seq)//batch_size):
     sidx = i*batch_size
     eidx = sidx + batch_size
     x = seq[sidx:eidx]
     x = torch.tensor(x).cuda()
     input_seq =torch.nn.utils.rnn.pack_padded_sequence(x,seq_lengths,batch_first = True)
     y = out_seq[sidx:eidx]
     output = model(input_seq)
     loss = criterion(output,y)
     loss.backward()
     optimizer.step()
  /usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py in __call__(self, *input, **kwargs)
      487             result = self._slow_forward(*input, **kwargs)
      488         else:
  --&gt; 489             result = self.forward(*input, **kwargs)
      490         for hook in self._forward_hooks.values():
      491             hook_result = hook(self, input, result)   
  /usr/local/lib/python3.6/dist-packages/torch/nn/modules/rnn.py in forward(self, input, hx)
      180         else:
      181             result = _impl(input, batch_sizes, hx, self._flat_weights, self.bias,
  --&gt; 182                            self.num_layers, self.dropout, self.training, self.bidirectional)
      183         output = result[0]
      184         hidden = result[1:] if self.mode == 'LSTM' else result[1]
  
   RuntimeError: cuDNN error: CUDNN_STATUS_BAD_PARAM
  </code></pre>