#NEWLINE# def test_1msigmoid( self ) : #NEWLINE# #INDENT# if ( not register_local_1msigmoid ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# m = self . get_mode ( ) #NEWLINE# x = T . fmatrix ( ) #NEWLINE# f = theano . function ( [ x ] , ( 1 - ( T . exp ( x ) / ( 1 + T . exp ( x ) ) ) ) , mode = m ) #NEWLINE# assert ( [ node . op for node in f . maker . fgraph . toposort ( ) ] == [ tensor . neg , sigmoid_inplace ] ) #NEWLINE# f = theano . function ( [ x ] , ( 1 - ( T . fill ( x , 1.0 ) / ( 1 + T . exp ( ( - x ) ) ) ) ) , mode = m ) #NEWLINE# assert ( [ node . op for node in f . maker . fgraph . toposort ( ) ] == [ tensor . neg , sigmoid_inplace ] )