This file contains hidden or 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
""" | |
simple character rnn from Karpathy's blog | |
""" | |
import numpy as np | |
def random_init(num_rows, num_cols): | |
return np.random.rand(num_rows, num_cols)*0.01 | |
def zero_init(num_rows, num_cols): |