• P
    [Cherry-pick PR 29913], add View(reuse allocation) strategy on squeeze,... · 7c943a65
    pangyoki 提交于
    [Cherry-pick PR 29913], add View(reuse allocation) strategy on squeeze, unsqueeze, reshape, flatten op (#29913) (#30258)
    
    * 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
    
    * delete selected_rows
    
    * change op_function
    
    * little change
    
    * solve HandleViewBetweenInputAndOutput
    7c943a65
op_function_generator.cc 17.6 KB