my environment is win10, with torch 1.2
rnn model cannot converge while using nn.DataParallel
but it work well while not using nn.DataParallel
I using the api as the same as the following example, is there any problem with my using method in Win10, or could you give me some correct example, thanks a lot.

  
      gist.github.com
  
  
    https://gist.github.com/spencerpomme/f77ac78f7451666be2b0230564519226
char_rnn.py
'''
Character-Level LSTM in PyTorch

In this code, I'll construct a character-level LSTM with PyTorch. The network will train
character by character on some text, then generate new text character by character.
This model will be able to generate new text based on the text from any provided book!

This network is based off of Udacity RNN mini project and which is in turn based off of Andrej Karpathy's
post on RNNs and implementation in Torch.

This file has been truncated. show original