• P
    Add Inplace strategy (Output reuse Input Varbase) in dygraph (#30103) · 13d75736
    pangyoki 提交于
    * add view strategy on squeeze,unsqueeze,reshape,flatten
    
    * add squeeze unittest
    
    * add unittests
    
    * use View strategy as name rather than Reuse Allacation
    
    * fix view api doc
    
    * fix format
    
    * use core.ops when input of reshape2 is Tensor
    
    * fix test_cross_entropy_loss error because of reshape2
    
    * fix test_cross_entropy_loss error because of reshape2
    
    * add inplace strategy
    
    * add elementwise_add sub
    
    * let backward op not use inplace
    
    * grad op do not use inplace
    
    * fix memory increase error and add leaf error message
    
    * delete selected_rows
    
    * change op_function
    
    * little change
    
    * solve HandleViewBetweenInputAndOutput
    
    * add unittest and leaf error message
    
    * merge view error
    
    * optimize op_function_generator format and support sum inplace op
    
    * fix format of basic_engine
    
    * fix format for framework
    
    * little change of variable wrapper
    
    * add reshape, squeeze, unsqueeze, scatter api
    
    * add relu elu tanh softmax inplace api
    
    * fix test_squeeze_op unittest
    
    * fix test_relu_op unittest
    
    * fix comment problems
    
    * delete sample code of inplace api
    
    * add reference of grad_pending_nodes in basic_engine
    
    * fix unittest name
    
    * add inplace apis into wlist
    
    * fix error message
    
    * add PADDLE_ENFORCE for set grad op twice
    
    * fix head file error
    13d75736
grad_op_desc_maker.h 9.2 KB