#NEWLINE# def equals( self , other ) : #NEWLINE# #INDENT# if isinstance ( other , numpy . ndarray ) : #NEWLINE# #INDENT# other = theano . tensor . basic . constant ( other ) #NEWLINE# #UNINDENT# return ( isinstance ( other , TensorConstant ) and ( self . signature ( ) == other . signature ( ) ) )