Runtime error: loss.backward() with autograd Variable

This thread probably has answer to your question: [Solved] Training a simple RNN

Let me know if you need any other help :slight_smile: Have fun pytorching.