#NEWLINE# def add_shape( self , name , shape ) : #NEWLINE# #INDENT# start = start . num_weights #NEWLINE# self . num_weights += np . prod ( shape ) #NEWLINE# self . idxs_and_shapes [ name ] = ( slice ( start , self . num_weights ) , shape )