1. 06 5月, 2021 6 次提交
    • W
      [cherry-pick pr31970] Support transforms for paddle tensor image (#32705) · a9d330a3
      Wenyu 提交于
      * add to_grayscale, normalize
      
      * add rotate
      
      * add vfip and hflip
      
      * add crop center_crop
      
      * add utils
      
      * add utils
      
      * update utils, add raise for some cases
      
      * add padding, support constant, reflect, replicate, circular same as paddle.pad
      
      * update rotate
      
      * using utils func in [v|h]flip
      
      * add get-image-[n,c,w,h] axis utils
      
      * add get-image-[n,c,w,h] axis utils
      
      * align
      
      * update
      
      * remove default value in utils func
      
      * add assert for pad
      
      * update assert paddle image
      
      * support rotate fill func
      
      * raise valueerror for pad
      
      * remove typing, py2 dont support
      
      * init uinttest for transforms tensor
      
      * add resize op
      
      * register [normalize hflip crop center_crop resize transpose] imagenet
      
      * register [normalize hflip crop center_crop resize transpose] imagenet
      
      * fix bugs, (w, h) getter and import
      
      * add _get_image_size for tensor image
      
      * add pad vflip for tensor image
      
      * add unittest for tensor transforms
      
      * update transforms unittest for converage CI probelms, test=develop
      
      * update
      
      * update
      
      * update
      
      * fix `get_shape` for tensor backend
      
      * update
      
      * update
      
      * add more resize tests
      
      * update
      
      * update for ci test
      
      * update
      
      * remove redundancy code
      
      * update uinttest, and set tensor image to hwc by default
      
      * add tensor backend
      
      * fix copyright doc, rm comment code, add pil unittest
      
      * update data_format to `chw` for tensor
      
      * coverage notest,test=coverage
      
      * update
      
      * update
      a9d330a3
    • W
      fix error imformation when trigger import error (#32702) · 43b3e99f
      Wenyu 提交于
      43b3e99f
    • L
      fix l1 decay for inplace (#32718) · c0f26683
      littletomatodonkey 提交于
      c0f26683
    • L
      update, test=develop (#32731) · df00636b
      lilong12 提交于
      df00636b
    • Z
      add API Tensor.item() to convert Tensor element to a Python scalar (#32634) · 035c7425
      Zhou Wei 提交于
      cherry-pick #32561
      035c7425
    • H
      [Dy2stat] Fix to_tensor Bug Reported from QA (#32701) (#32713) · cdfc34d2
      Huihuang Zheng 提交于
      Dy2stat failed when user writes return paddle.to_tensor(xxx), the reason is that visit_Expr doesn't work when the Expr is in return. Some other statements may trigger same bug. To fix it, we re-wrote a transformer to transform paddle.to_tensor to paddle.assign for all Call nodes.
      cdfc34d2
  2. 05 5月, 2021 2 次提交
  3. 01 5月, 2021 1 次提交
  4. 30 4月, 2021 2 次提交
    • P
      Add 12 inplace APIs including auto generated (#32573) (#32699) · 097d5f52
      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
      097d5f52
    • L
      Add op read_file and decode_jpeg (#32564) (#32686) · 2817239a
      LielinJiang 提交于
      * add op read_file and decode_jpeg
      2817239a
  5. 29 4月, 2021 8 次提交
  6. 28 4月, 2021 2 次提交
  7. 27 4月, 2021 9 次提交
  8. 26 4月, 2021 10 次提交