• P
    Add 12 inplace APIs including auto generated (#32573) · 308073de
    pangyoki 提交于
    * add relu6_ hardsigmoid_ leaky_relu_ Inplace APIs
    
    * add softmax_with_cross_entropy_ Inplace API
    
    * add clip_ scale_ add_ subtract_ Inplace APIs
    
    * add wlist
    
    * fix parameter of scale api
    
    * add add_n_ Inplace API and remove log_ Inplace API
    
    * fix elementwise_add_ and elementwise_sub_ broadcast problem
    
    * elementwise inplace api give error message before run the op
    
    * use broadcast_shape in elementwise inplace op
    
    * add 8 inplace apis that is auto generated
    
    * add unittest for all inplace apis
    
    * add decorator for inplace apis in static mode
    
    * fix windows blas fail of exp inplace api, change array_equal to allclose
    
    * add flatten inplace api
    
    * add flatten unittest
    
    * fix flatten unittest
    
    * add decorator
    
    * fix grad.numpy in test_pylayer_op
    
    * unsupport softmax_with_cross_entropy_
    
    * add test_inplace_softmax_with_cross_entropy to static_mode_white_list
    
    * delete __all__ in inplace_utils
    
    * delete activation inplace function and add Tensor.inplace_func
    
    * change paddle.inplace_ to Tensor.inplace_
    
    * fix little problem
    
    * add paddle in inplace_utils
    308073de
test_elementwise_add_op.py 20.5 KB