Anyone having PyTorch version of this minimal RNN written by Karpathy back in 2015.

  
      gist.github.com
  
  
    https://gist.github.com/karpathy/d4dee566867f8291f086 20
min-char-rnn.py
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np

# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
This file has been truncated. show original




  
  
    
    
  
  


This is part of his The Unreasonable Effectiveness of Recurrent Neural Networks 7
I have hard time learning RNNs but no progress.