#NEWLINE# def _check_overfeat_layer( input_img , theano_layer , binary_layer , largenet , detailed , cropping = None , overfeatcmd = None , net_weight_file = None , overfeat_dir = None , architecture = 'linux_64' ) : #NEWLINE# #INDENT# theano_output = get_theano_output ( input_img , theano_layer , largenet , detailed ) #NEWLINE# binary_output = get_output ( input_img , binary_layer , largenet , overfeatcmd = overfeatcmd , net_weight_file = net_weight_file , overfeat_dir = overfeat_dir , architecture = architecture ) #NEWLINE# if ( cropping is not None ) : #NEWLINE# #INDENT# binary_output = binary_output [ ( [ slice ( None ) ] + cropping ) ] #NEWLINE# #UNINDENT# assert_array_almost_equal ( theano_output , binary_output , decimal = 3 )