#NEWLINE# def forward_cpu( self , inputs ) : #NEWLINE# #INDENT# ( x0 , x1 ) = inputs #NEWLINE# self . diff = ( x0 - x1 ) #NEWLINE# diff = self . diff . ravel ( ) #NEWLINE# return ( numpy . array ( ( diff . dot ( diff ) / diff . size ) , dtype = diff . dtype ) , )