#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# self . f = links . Bilinear ( self . in_shape [ 0 ] , self . in_shape [ 1 ] , self . out_size , True ) #NEWLINE# W = self . f . W . data #NEWLINE# W [ ... ] = numpy . random . uniform ( ( - 1 ) , 1 , W . shape ) #NEWLINE# self . f . zerograds ( ) #NEWLINE# self . W = W . copy ( ) #NEWLINE# self . e1 = _uniform ( self . batch_size , self . in_shape [ 0 ] ) #NEWLINE# self . e2 = _uniform ( self . batch_size , self . in_shape [ 1 ] ) #NEWLINE# self . gy = _uniform ( self . batch_size , self . out_size ) #NEWLINE# self . y = numpy . einsum ( 'ij,ik,jkl->il' , self . e1 , self . e2 , W . W )