#NEWLINE# @ attr . multi_gpu ( 2 ) #NEWLINE# def test_sqnorm_array_multi_gpu( self ) : #NEWLINE# #INDENT# x0 = cuda . to_gpu ( self . x , device = 0 ) #NEWLINE# x1 = cuda . to_gpu ( self . x , device = 1 ) #NEWLINE# a0 = cuda . to_gpu ( self . a , device = 0 ) #NEWLINE# a1 = cuda . to_gpu ( self . a , device = 1 ) #NEWLINE# self . assertAlmostEqual ( optimizer . _sum_sqnorm ( [ self . x , self . a , x0 , a0 , x1 , a1 ] ) , ( 8.75 * 3 ) )