#NEWLINE# def _get_kernel( self , size , nbtype ) : #NEWLINE# #INDENT# blocksize = min ( ( key // 2 ) , 512 ) #NEWLINE# key = ( nbtype , blocksize ) #NEWLINE# return ( self . _kernels [ key ] , ( blocksize * 2 ) )