#NEWLINE# def bind_params( self , I , E , O , alpha ) : #NEWLINE# #INDENT# assert ( I . dtype == E . dtype ) #NEWLINE# if ( ( O . dtype . type is not np . float32 ) or self . determ ) : #NEWLINE# #INDENT# update_temp = self . lib . scratch_buffer ( ( ( self . determ or O . size ) * 4 ) ) #NEWLINE# self . convert_args = [ update_temp , 'f4' , O , False ] #NEWLINE# if self . determ : #NEWLINE# #INDENT# self . convert_args [ 3 ] = self . determ_shape #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# update_temp = O . gpudata #NEWLINE# self . convert_args = False #NEWLINE# #UNINDENT# self . zero_args = [ update_temp , 0 , O . size , self . lib . stream ] #NEWLINE# for kernel in self . kernels : #NEWLINE# #INDENT# kernel [ 3 : 8 ] = ( self . lib . stream , update_temp , I . gpudata , E . gpudata , alpha )