#NEWLINE# def check_forward( self , args ) : #NEWLINE# #INDENT# y = functions . batch_normalization ( * [ chainer . Variable ( i ) for i in args ] , eps = self . eps ) #NEWLINE# self . assertEqual ( y . data . dtype , numpy . float32 ) #NEWLINE# y_expect = _batch_normalization ( self . expander , args . gamma , self . beta , self . x , self . mean , self . var ) #NEWLINE# gradient_check . assert_allclose ( y_expect , y . data , rtol = 0.001 , atol = 0.0001 )