#NEWLINE# def LoadParams( self , proto , t_op = None , tied_to = None ) : #NEWLINE# #INDENT# 'Load the parameters for this edge.\n\n    Load the parameters if present in self.proto. Otherwise initialize them\n    appropriately.\n    ' #NEWLINE# param_names = [ param . name for param in proto . param ] #NEWLINE# for param in proto . param : #NEWLINE# #INDENT# assert param . dimensions , 'Empty dimensions' #NEWLINE# if tied_to : #NEWLINE# #INDENT# if self . transpose : #NEWLINE# #INDENT# self . params [ param . name ] = mat . params [ param . name ] . T #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . params [ param . name ] = tied_to . params [ param . name ] #NEWLINE# #UNINDENT# mat = self . params [ param . name ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if param . mat : #NEWLINE# #INDENT# mat = util . ParameterAsNumpy ( param ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# mat = self . InitializeParameter ( param ) #NEWLINE# #UNINDENT# self . params [ param . name ] = cm . CUDAMatrix ( mat )