#NEWLINE# @ gof . local_optimizer ( [ IfElse ] ) #NEWLINE# def cond_make_inplace( node ) : #NEWLINE# #INDENT# op = node . op #NEWLINE# if ( isinstance ( op , IfElse ) and ( not op . as_view ) and ( ( len ( node . fgraph . apply_nodes ) < 500 ) or ( not all ( [ ( getattr ( o . type , 'ndim' , ( - 1 ) ) == 0 ) for o in op . outputs ] ) ) ) ) : #NEWLINE# #INDENT# return IfElse ( n_outs = op . n_outs , as_view = True , gpu = op . gpu , name = op . name ) ( * node . inputs , ** dict ( return_list = True ) ) #NEWLINE# #UNINDENT# return False