This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Vanilla Char-RNN using TensorFlow by Vinh Khuc (@knvinh). | |
Adapted from Karpathy's min-char-rnn.py | |
https://gist.github.com/karpathy/d4dee566867f8291f086 | |
Requires tensorflow>=1.0 | |
BSD License | |
""" | |
import random | |
import numpy as np | |
import tensorflow as tf |