def test_pydotprint_long_name():
 if (not theano.printing.pydot_imported):
  raise SkipTest('pydot not available')
 x = tensor.dvector()
 mode = theano.compile.mode.get_default_mode().excluding('fusion')
 f = theano.function([x], [(x * 2), (x + x)], mode=mode)
 f([1, 2, 3, 4])
 theano.printing.pydotprint(f, max_label_size=5, print_output_file=False)
 theano.printing.pydotprint([(x * 2), (x + x)], max_label_size=5, print_output_file=False)

def test_pydotprint_long_name ( ) : if ( not theano . printing . pydot_imported ) : raise SkipTest ( 'pydot not available' ) x = tensor . dvector ( ) mode = theano . compile . mode . get_default_mode ( ) . excluding ( 'fusion' ) f = theano . function ( [ x ] , [ ( x * 2 ) , ( x + x ) ] , mode = mode ) f ( [ 1 , 2 , 3 , 4 ] ) theano . printing . pydotprint ( f , max_label_size = 5 , print_output_file = False ) theano . printing . pydotprint ( [ ( x * 2 ) , ( x + x ) ] , max_label_size = 5 , print_output_file = False )
this is a really partial test .