#NEWLINE# def test_SingleOutputZero( self ) : #NEWLINE# #INDENT# a_in = numpy . random . uniform ( ( - 1.0 ) , ( + 1.0 ) , ( 8 , 16 ) ) #NEWLINE# a_out = numpy . random . randint ( 2 , size = ( 8 , 1 ) ) . astype ( numpy . float32 ) #NEWLINE# ( a_out [ 0 ] , a_out [ ( - 1 ) ] ) = ( 0 , 1 ) #NEWLINE# a_mask = ( 1.0 - a_out ) . flatten ( ) #NEWLINE# self . check ( a_in , a_out , a_mask )