1. 22 6月, 2021 1 次提交
    • Z
      [API/OP]Add a new API paddle.diagonal (#33586) · ad106290
      zhangbo9674 提交于
      * new api diagonal, test=develop
      
      * add new api diagonal, test=develop
      
      * new api diagonal, test=develop
      
      * add new api paddle.diagonal, test=develop
      
      * use framework::stride replace ComputeDimStride
      
      * replace cudaMalloc/cudaMemcpy by TensorFormVector in cudaKernel and cudaGradKernel
      
      * perfect funciton: when attr(offset) is exceed attr(axis1) or attr(axis2), set the diagonal dim is 0
      
      * fix RP-Mac-CI bug: replace framework::stride() by ComputDimStride.
      
      * perfect code-block
      
      * perfect code of python API diagonal
      
      * api supports dtype of float16 and bool
      
      * api supports dtype of float16 and bool
      
      * modify unittest code
      
      * modify unittest code
      
      * perfect dtype describe
      
      * perfect code-block
      ad106290
  2. 17 6月, 2021 1 次提交
  3. 16 6月, 2021 2 次提交
  4. 15 6月, 2021 1 次提交
    • Z
      Add digamma_op and unittest (#33278) · 02a6d49a
      zyfncg 提交于
      * Add digamma_op and unittest
      
      * add digamma_op api
      
      * remove special DigammaCudaKernel and correct some docs
      
      * remove unused headers
      
      * fix api doc error
      02a6d49a
  5. 11 6月, 2021 2 次提交
  6. 09 6月, 2021 2 次提交
  7. 30 4月, 2021 1 次提交
    • 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
  8. 27 4月, 2021 1 次提交
  9. 15 1月, 2021 1 次提交
    • 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
  10. 21 12月, 2020 1 次提交
  11. 17 12月, 2020 2 次提交
    • C
      add conj op for complex types (#29527) · 71063b81
      chentianyu03 提交于
      * add conj op for complex types
      
      * add conj for complex types
      
      * add more test case
      
      * add conj_op test
      
      * modify conj api and impl
      
      * add complex type for fill_constant_op xpu
      
      * add setConstant for complex type
      
      * remove complex conj test file
      
      * user define grad for test_conj_op
      
      * add test case for static mode of conj api
      
      * modify conj doc
      
      * change input args name to x
      
      * remove useless codes
      
      * conj support real types
      
      * add conj test case for real number
      71063b81
    • C
      [Complex] Add real & imag op and api for complex tensor (#29672) · 6cfa59de
      Chen Weihang 提交于
      * add complex real op & api & unittest
      
      * add imag op & api & unittest
      
      * refactor op impl
      
      * revert simplify writing due to complile failed
      
      * polish details
      
      * polish grad op code
      6cfa59de
  12. 09 12月, 2020 2 次提交
  13. 27 11月, 2020 1 次提交
  14. 19 11月, 2020 1 次提交
  15. 12 11月, 2020 1 次提交
  16. 04 11月, 2020 1 次提交
    • L
      Add broadcast_shape api (#28257) · 8b2436a7
      Leo Chen 提交于
      * add broadcast_shape api
      
      * add ut
      
      * follow comments
      
      * add example code, test=dodument_fix
      
      * update example code, test=document_fix
      8b2436a7
  17. 30 10月, 2020 1 次提交
    • Z
      Add median api. (#28310) · 26ede6e0
      zhulei 提交于
      * Add median api.
      
      * Add median api.
      
      * Add median api.
      
      * Add median api.
      
      * Add median api.
      26ede6e0
  18. 26 10月, 2020 1 次提交
    • C
      [cherry pick ] cherry pick 28108 28198 28199 from release2.0rc (#28215) · 99408718
      cnn 提交于
      * Release 2.0rc cherry pick api rename #28108 (#28184)
      
      * rename count_include_pad-->exclusive  return_indices-->return_mask
      
      * remove track_running_stats
      
      * fix typo.
      
      * rename xxxd-->xxxxD
      
      * solve conflicts
      
      * 2.0rc api add all any (#28199)
      
      * reduce trt warning message (#28011)
      
      add paddle.enable_static() on sample code
      
      alias recude_all-->all, reduce_any-->any
      
      add import reduce_all and reduce_any in python/paddle/tensor/math.py
      
      import all and any in python/paddle/tensor/__init__.py
      
      remove all and any OP in python/paddle/tensor/logic.py, add all and any OP in python/paddle/tensor/math.py
      
      fix import error
      
      remove TestAllAPI temporary
      
      * fix doc of recdue_all and reduce_any, test=document_fix
      
      * fix typo
      
      * fix unittest for all and any API
      Co-authored-by: NPei Yang <peiyang@baidu.com>
      
      * rename conv_transposeXd-->convXd_transpose (#28198)
      
      * fix sample code of reduce_all and reduce_any
      Co-authored-by: NPei Yang <peiyang@baidu.com>
      99408718
  19. 21 10月, 2020 1 次提交
    • Z
      Add new api: is_tensor (#28111) · 446d184e
      zhulei 提交于
      * Add new api: is_tensor
      
      * Add new api: is_tensor
      
      * Add new api: is_tensor
      
      * Add new api: is_tensor
      446d184e
  20. 14 10月, 2020 1 次提交
    • C
      Remove and reorganize the alias of APIs (#27717) · d05058d2
      chentianyu03 提交于
      * modify cond while_loop to paddle.static.nn.cond
      
      * modify crop_tensor to paddle.crop
      
      * modify Variable to paddle.static.Variable
      
      * remove nn.beam_search, nn.beam_search_decode, nn.gather_tree
      
      * remove bpr_loss, center_loss, rank_loss, smooth_l1, teacher_student_sigmoid_loss, edit_distance, sampled_softmax_with_cross_entropy in nn.functional
      
      * remove apis in nn.functional.learn_rate.py
      
      * remove pool2d, pool3d, adaptive_pool2d, adaptive_pool3d in nn.functional
      
      * remove apis in nn.functional.vision
      
      * remove erf, soft_relu in nn.functional.activation
      
      * remove apis in nn.functional.extension
      
      * remove nn.functional.rnn
      
      * remove hash from nn.functional.lod
      
      * remove row_conv from nn.functional.extension
      
      * remove one_hot, pad2d, pad_constant_like from nn.functional.common
      
      * remove nn.gather_tree, nn.BilinearTensorProduct, nn.Pool2D, nn.Pad2D
      
      * remove apis from optimizer.__init
      
      * remove tensor.creation.fill_constant
      
      * remove elementwise_mul in nn.functional.common and  modify to paddle.multiply
      
      * remove  tensor.stat.reduce_mean
      
      * remove reduce_all, reduce_any in tensor.logic
      
      * remove apis in tensor.math
      
      * remove apis in tensor.__init__
      
      * remove has_inf, has_nan in tensor.search
      
      * remove apis in framework.__init__
      
      * remove apis in paddle.__init__
      
      * remove apis in nn.functional.__init__
      
      * modify removed alias apis to raw api in doc and unittests
      
      * fix remove grid_sample bug
      
      * modify removed alias apis to raw api in doc and unittests
      
      * modify removed alias apis to raw api in doc and unittests
      
      * modify removed alias apis to raw api in doc and unittests
      
      * modify removed alias apis to raw api in doc and unittests
      
      * modify removed alias apis to raw api in doc and unittests
      
      * modify removed alias apis to raw api in doc and unittests
      
      * delete alias api relastions in doc
      
      * reserve paddle.compat, paddle.sysconfig
      
      * remove unittest for paddle.reduce_all, paddle.reduce_any
      
      * modify removed alias apis to raw api in doc and unittests
      
      * recover paddle.save and paddle.load
      
      * resolve conflicts
      
      * fix sample code missing paddle.enable_static() bug
      
      * fix sample code missing paddle.enable_static() bug
      
      * fix to_string sample code error
      d05058d2
  21. 13 10月, 2020 2 次提交
    • L
      Refine the format of printing tensor (#27673) · 049696bf
      Leo Chen 提交于
      * add sumary feature
      
      * refine printting tensor
      
      * add sci_mode
      
      * add sample code
      
      * fix indent error
      
      * fix _format_item
      
      * polish code
      
      * support item indent
      
      * add ut
      
      * set place for ut
      
      * fix py2 issue
      
      * fix ut
      049696bf
    • S
      Update api 2.0 for some ops · 92b3a717
      Steffy-zxf 提交于
      * 1. remove paddle.unique_with_counts api, which counts as unique api
      2. add paddle.math.increment(x, value=1.0, name=None) api
      3. replace paddle.sums with paddle.add_n api
      4. update paddle.metric.accuracy api (add name parameter)
      92b3a717
  22. 29 9月, 2020 1 次提交
    • P
      add multinomial op (#27219) · 7cd2c13f
      pangyoki 提交于
      * add multinomial cpu kernel
      
      * fix C++ notype error
      
      * fix windows ci array len error
      
      * let array len be const
      
      * change array to vector
      
      * add cuda kernrl with num_distribution is 1, and not support replacement=False
      
      * add multinomial python api
      
      * support num_distribution different multinomial distributions
      
      * add multinomial python api unittest
      
      * change output dtype to int64
      
      * fix coverage prob
      
      * optimize format
      
      * fix dtype of output error, should be int64_t
      7cd2c13f
  23. 23 9月, 2020 1 次提交
    • C
      Add new paddle.save/load APIs (#27331) · bb84f0e6
      Chen Weihang 提交于
      * init commit of new save/load
      
      * fix failed unittests
      
      * fix save_load_v2 unittest failed
      
      * fix failed unittest & polish doc
      
      * add tests for coverage
      
      * add more tests & move static apis
      
      * fix example code error
      
      * polish emample code
      
      * fix detail example code problem
      bb84f0e6
  24. 22 9月, 2020 1 次提交
  25. 21 9月, 2020 1 次提交
  26. 17 9月, 2020 1 次提交
  27. 11 9月, 2020 1 次提交
  28. 27 8月, 2020 1 次提交
  29. 24 8月, 2020 1 次提交
  30. 23 8月, 2020 1 次提交
  31. 22 8月, 2020 1 次提交
  32. 21 8月, 2020 3 次提交
    • W
      e167e879
    • P
      Rename uniform_random API (#26347) · bdac6bc8
      pangyoki 提交于
      * Rename uniform and gaussian APIs
      
      * rename uniform_random API as uniform
      
      * Fixed unittest
      
      * fixed unittest AttributeError
      
      * Fixed unittest
      
      * Add uniform function rather than alias
      
      * remove templatedoc
      
      * solve conflict and fix doc code
      
      * fix doc code
      bdac6bc8
    • Y
      Update `paddle.clamp` (#25906) · e662d1e0
      Yang Zhang 提交于
      * Update `paddle.clamp`
      
      rename to `paddle.clip`
      add fast path for dygraph mode
      remove `out`
      rename `input` -> `x`
      update doc sample
      
      * Fix leftover `Variable` wording
      
      * Indent doc with spaces
      
      * Remove `:alias` in docs
      
      * Update `enable_imperative` -> `disable_static`
      
      * Remove `imperative`
      
      also trigger CI
      
      * Update tests for better coverage
      
      * Rebase to fix `cosine_similarity`
      
      * Fix `cosine_similarity` some more
      e662d1e0