#NEWLINE# def __call__( self , nn , train_history = None ) : #NEWLINE# #INDENT# if nn : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# message = self . _get_greeting ( nn ) #NEWLINE# print ( message ) #NEWLINE# print ( '## Layer information' ) #NEWLINE# print ( '' ) #NEWLINE# layers_contain_conv2d = is_conv2d ( nn . layers_ . values ( ) ) #NEWLINE# if ( ( not layers_contain_conv2d ) or ( nn . verbose < 2 ) ) : #NEWLINE# #INDENT# layer_info = self . _get_layer_info_plain ( nn ) #NEWLINE# legend = None #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ( layer_info , legend ) = self . _get_layer_info_conv ( nn ) #NEWLINE# #UNINDENT# print ( layer_info ) #NEWLINE# if ( legend is not None ) : #NEWLINE# #INDENT# print ( legend ) #NEWLINE# #UNINDENT# print ( '' ) #NEWLINE# sys . stdout . flush ( )