#NEWLINE# def __init__( self , n_vocab , n_units ) : #NEWLINE# #INDENT# super ( CharRNN , self ) . __init__ ( embed = F . EmbedID ( n_vocab , n_units ) , l1_x = L . Linear ( n_units , ( 4 * n_units ) ) , l1_h = L . Linear ( n_units , ( 4 * n_units ) ) , l2_h = L . Linear ( n_units , ( 4 * n_units ) ) , l2_x = L . Linear ( n_units , ( 4 * n_units ) ) , l3 = L . Linear ( n_units , n_vocab ) ) #NEWLINE# for param in self . parameters : #NEWLINE# #INDENT# param [ : ] = np . random . uniform ( ( - 0.08 ) , 0.08 , param . shape )