Module Expr Str Import alias Import alias Import alias ImportFrom alias Import alias identifier ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr TryFinally body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore ListComp Call AttributeLoad NameLoad attr BinOpMod Str NameLoad comprehension NameStore Call NameLoad Num Assign NameStore ListLoad AugAssignAdd NameStore ListComp Call AttributeLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index BinOpAdd NameLoad Num attr keyword Num comprehension NameStore Call NameLoad BinOpSub Call NameLoad NameLoad Num AugAssignAdd NameStore ListComp BinOpAdd SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index BinOpAdd NameLoad Num comprehension NameStore Call NameLoad BinOpSub Call NameLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIn AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Str Str body Assign NameStore Str orelse Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword Str keyword NameLoad Assign NameStore ListComp BinOpAdd Call AttributeLoad NameLoad attr Num keyword Str Num comprehension NameStore Call NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListComp NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Str CompareIn Str NameLoad Assign NameStore ListComp NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Str CompareIn Str NameLoad If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Assert CompareIn Str NameLoad TupleLoad NameLoad NameLoad Assert CompareIn Str NameLoad TupleLoad NameLoad NameLoad Assert CompareIn Str NameLoad TupleLoad NameLoad NameLoad Assert CompareIn Str NameLoad TupleLoad NameLoad NameLoad orelse Assert CompareIn Str NameLoad TupleLoad NameLoad NameLoad Assert CompareIn Str NameLoad TupleLoad NameLoad NameLoad Assert CompareIn Str NameLoad TupleLoad NameLoad NameLoad Assert CompareIn Str NameLoad TupleLoad NameLoad NameLoad Assert CompareIn Str NameLoad TupleLoad NameLoad NameLoad finalbody Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr TryFinally body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad BinOpMult NameLoad Num BinOpMult NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIn AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Str Str body Assign NameStore Str orelse Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad keyword Str keyword NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad finalbody Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A 
Test of memory profiling

 N/A unittest N/A numpy N/A theano six.moves StringIO N/A theano.tensor T theano.ifelse ifelse Test_profiling N/A N/A unittest TestCase N/A N/A 
    Test of Theano profiling with min_peak_memory=True
     test_profiling N/A N/A self N/A N/A N/A config1 N/A N/A theano config profile N/A config2 N/A N/A theano config profile_memory N/A config3 N/A N/A N/A theano config profiling min_peak_memory N/A N/A N/A N/A N/A theano config profile True N/A N/A N/A theano config profile_memory True N/A N/A N/A N/A theano config profiling min_peak_memory True N/A x N/A N/A N/A T fvector N/A val%i i N/A i N/A range 3 N/A z N/A N/A z N/A N/A N/A N/A N/A T outer N/A x N/A i N/A x N/A N/A i 1 sum axis 1 N/A i N/A range N/A N/A len x 1 N/A z N/A N/A N/A x N/A i N/A x N/A N/A i 1 N/A i N/A range N/A N/A len x 1 N/A p N/A N/A theano ProfileStats False N/A N/A N/A N/A theano config mode N/A DebugMode DEBUG_MODE FAST_COMPILE N/A N/A m FAST_RUN N/A N/A m None N/A f N/A N/A theano function x z profile p name test_profiling mode m N/A inp N/A N/A N/A N/A numpy arange 1024 dtype float32 1 N/A i N/A range N/A len x N/A output N/A f inp N/A buf N/A StringIO N/A N/A N/A N/A f profile summary buf N/A the_string N/A N/A buf getvalue N/A lines1 N/A l N/A l N/A N/A the_string split N/A Max if linker l N/A lines2 N/A l N/A l N/A N/A the_string split N/A Minimum peak l N/A N/A N/A N/A theano config device cpu N/A N/A N/A CPU: 4112KB (8204KB) the_string N/A lines1 lines2 N/A N/A CPU: 8204KB (12296KB) the_string N/A lines1 lines2 N/A N/A CPU: 8208KB the_string N/A lines1 lines2 N/A N/A Minimum peak from all valid apply node order is 4104KB the_string N/A lines1 lines2 N/A N/A N/A CPU: 16KB (16KB) the_string N/A lines1 lines2 N/A N/A GPU: 8204KB (8204KB) the_string N/A lines1 lines2 N/A N/A GPU: 12300KB (12300KB) the_string N/A lines1 lines2 N/A N/A GPU: 8212KB the_string N/A lines1 lines2 N/A N/A Minimum peak from all valid apply node order is 4116KB the_string N/A lines1 lines2 N/A N/A N/A N/A theano config profile config1 N/A N/A N/A theano config profile_memory config2 N/A N/A N/A N/A theano config profiling min_peak_memory config3 N/A test_ifelse N/A N/A self N/A N/A N/A config1 N/A N/A theano config profile N/A config2 N/A N/A theano config profile_memory N/A N/A N/A N/A N/A theano config profile True N/A N/A N/A theano config profile_memory True N/A N/A a b N/A N/A T scalars a b N/A N/A x y N/A N/A T scalars x y N/A z N/A ifelse N/A N/A T lt a b N/A x 2 N/A y 2 N/A p N/A N/A theano ProfileStats False N/A N/A N/A N/A theano config mode N/A DebugMode DEBUG_MODE FAST_COMPILE N/A N/A m FAST_RUN N/A N/A m None N/A f_ifelse N/A N/A theano function N/A a b x y z profile p name test_ifelse mode m N/A val1 0.0 N/A val2 1.0 N/A big_mat1 10 N/A big_mat2 11 N/A out N/A f_ifelse val1 val2 big_mat1 big_mat2 N/A N/A N/A N/A theano config profile config1 N/A N/A N/A theano config profile_memory config2 N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main