#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# super ( TestBilinearWOBias2 , self ) . setUp ( ) #NEWLINE# assert ( ( e1 . in_shape [ 1 ] % 2 ) == 0 ) #NEWLINE# self . e1 = _uniform ( self . batch_size , 1 , self . in_shape [ 0 ] ) #NEWLINE# self . e2 = _uniform ( self . batch_size , 2 , ( self . in_shape [ 1 ] // 2 ) ) #NEWLINE# self . gy = _uniform ( self . batch_size , self . out_size ) #NEWLINE# e1 = array . as_mat ( self . e1 ) #NEWLINE# e2 = array . as_mat ( self . e2 ) #NEWLINE# self . y = numpy . einsum ( 'ij,ik,jkl->il' , e1 , e2 , self . W )