1. 25 5月, 2021 1 次提交
  2. 24 5月, 2021 1 次提交
  3. 21 5月, 2021 1 次提交
  4. 20 5月, 2021 2 次提交
    • C
      Add complex template type (#32857) · 738bf20e
      chentianyu03 提交于
      * add complex template file
      
      * add numtraits for complex template
      
      * add complex template type register
      
      * modify specify template of complex
      
      * modify specify template of complex
      
      * modify specify template of complex
      
      * modify specify template of complex
      
      * make TensorCheckerVisitor support complex type
      
      * fix operator= error
      
      * add complex template
      
      * add complex template type
      
      * add complex template type to pyarray transform
      
      * add complex template type to pyarray transform
      
      * remove complex type for dlpack register
      
      * set dlpack supprot complex type
      
      * set dlpack supprot complex type
      
      * set dlpack supprot complex type
      
      * remove explict for complex constructor
      
      * add complex unit test file
      738bf20e
    • Z
      handle remove files in pr (#32940) · 7e27b5aa
      zhangchunle 提交于
      7e27b5aa
  5. 19 5月, 2021 2 次提交
  6. 18 5月, 2021 1 次提交
  7. 14 5月, 2021 3 次提交
    • Z
      change ut file map (#32841) · a3debea2
      zhangchunle 提交于
      a3debea2
    • R
      use the `required` instruction to determine if the environment fits the sample... · 42aad304
      Ren Wei (任卫) 提交于
      use the `required` instruction to determine if the environment fits the sample code's required. (#32766)
      
      * add unittests
      
      * add find_last_future_line_end
      
      * extract_code_blocks_from_docstr and its testcases
      
      * test_codeblock_before_examples_is_ignored
      
      * sampcd_extract_to_file 拆为两步
      
      * update the codeblock element's format
      
      * code-block directive has no value options
      
      * insert the CODES_INTERTED_INTO_FRONTEND
      
      * using the new func insert_codes_into_codeblock
      
      * get_test_capacity and is_required_match
      
      * using the new funcitons in sampcd_extract_to_file
      
      * add some comments and refactor functions
      
      * using logger instead of all the print
      
      * remote wlist
      
      * collect summary info, and print them
      
      * call get capacity
      
      * update summary format
      
      * print the apis that don't have sample codes.
      
      * print the samples the consumed time more than 10s.
      
      print time
      
      * update unittest testcases
      
      * solve ResourceWarning: unclosed file
      
      * run tools test seperately
      
      * python2 does not have nonlocal keyword, using dict variable instead
      
      * remove unused import, rearrange a series of conditional statements.
      
      * remove wlist.json and its check approval
      
      * remove wlist.json and its check approval
      42aad304
    • T
      test=document_fix (#32906) · ed9e7723
      tianshuo78520a 提交于
      ed9e7723
  8. 12 5月, 2021 2 次提交
  9. 10 5月, 2021 2 次提交
  10. 07 5月, 2021 2 次提交
  11. 06 5月, 2021 1 次提交
  12. 30 4月, 2021 2 次提交
    • 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
    • F
      单测全量列表修改 (#32641) · 9b4fabf9
      feng626 提交于
      * 单测全量列表修改
      
      * 单测全量列表修改
      
      * 去除挂掉的windows单测
      
      * 去除挂掉的windows单测
      9b4fabf9
  13. 29 4月, 2021 1 次提交
  14. 27 4月, 2021 3 次提交
  15. 26 4月, 2021 1 次提交
  16. 25 4月, 2021 3 次提交
    • R
      Cleanup the unused codes for samplecode testing (#32525) · 2328921f
      Ren Wei (任卫) 提交于
      * update testcases
      
      * remove unused codes
      
      * update the docstring for samcd_processor
      
      * no need to import the six module
      
      * 我也不知道为何有一个前导空格,但现在有单元测试,取消这个空格没啥问题
      
      * add unittests for print_signatures; add the first case for 'required' mechanism when executing sample code testing
      
      * there is no paddle installed in PR-CI-APPROVAL
      
      test=document_fix
      2328921f
    • P
      support python39 and delete python35 in Dockerfile (#32385) · 78fc74b0
      pangyoki 提交于
      * support python39 and delete python35
      
      * support python39 in Dockerfile.centos
      
      * fix ubuntu18 bug
      
      * update Dockerfile.ubuntu setuptools
      
      * fix centos py39 errors
      
      * fix centos py39 error2
      78fc74b0
    • W
      paddle.save/load support nested structure and layer (#32446) · 727b28d7
      WeiXin 提交于
      * support save/load binary format tensor
      
      * Fix error when create cudaplace
      
      * Fix error when create cudaplace
      
      * Fix error when create cudaplace
      
      * get devive context from pool.
      
      * move define of 'SerializeToStream' and 'DeserializeFromStream' to 'lod_tensor.cc' and 'selected_rows.cc'.
      
      * support complex object
      
      * improve coverage.
      
      * improve coverage
      
      * improve coverage.
      
      * fix a bug.
      
      * polish API
      
      * save/load program
      
      * paddle.save/load: layer
      
      * deal with conflict
      
      * if PY2, block test_paddle_save_load.TestSaveLoadLayer
      
      * polish code.
      
      * polish code
      
      * edit unnittest
      
      * The condition for object to be identified as state_dict becomes strict
      
      * use 'core._cuda_synchronize'
      727b28d7
  17. 24 4月, 2021 1 次提交
    • R
      print the real name for Functions instead of the ArgSpec (#32379) · ef8671e5
      Ren Wei (任卫) 提交于
      * print the real name for Functions instead of the ArgSpec
      
      class function method
      
      * some API's name is not __module__ + __name__
      
      so, we disard them temporarily.
      
      * update the logging format for console
      
      * ommit the top level of paddle package.
      
      * these APIs have been removed.
      
      test=document_fix
      
      * Another Error occerd
      
      * print_signatures.py 's stdout is redirect to spec file, so should not print any other info.
      
      so sad.
      
      * print the error msg to stderr
      
      * disable the __init__ magic method
      
      * update unittest for sampcd_processor.py
      
      update unittest for sampcd_processor.py
      
      * PR-CI-APPROVAL 's python interpreter name is not 'python3'.
      
      it's a python3.9;
      it does not have paddle installed yet.
      
      此句在CI流水线竟然不可以用。报python3找不到
      此句在CI流水线竟然不可以用。因为环境没有安装paddle
      
      * testing only extract api from __all__
      
      paddle module(the top module) does not have __add__
      test=document_fix
      
      * should import paddle here
      
      * update the mechanism of extractiong and executing for the sample-codes test.
      
      更新抽取代码和执行代码的逻辑
      优化输出打印
      
      * good code style
      ef8671e5
  18. 23 4月, 2021 2 次提交
  19. 21 4月, 2021 2 次提交
  20. 19 4月, 2021 2 次提交
    • L
      [NPU] cherry-pick gc/dataloader/save&load/optimization from ascendrc to develop (#32294) · cbe5c9f8
      Leo Chen 提交于
      * [NPU] support GarbageCollector for npu (#31874)
      
      * support GarbageCollector for npu
      
      * fix typo
      
      * fix gather_grad
      
      * disable NPUDefaultStreamGarbageCollector on NPU
      
      * [NPU] support npu for memcpy op (#31808)
      
      * support npu for memcpy op
      
      * add ut
      
      * fix ut
      
      * fix typo
      
      * 【NPU】fix bug of using temp vector (#31963)
      
      * fix bug when beta1_pow on cpu (#31995)
      
      * [NPU] support npu profiler (#31684)
      
      * support npu profiler
      
      * add python api
      
      * fix bugs
      
      * add wrapper for incomplete type
      
      * update profile proto
      
      * record npu wait
      
      * add xpu placeholder
      
      * fix adam (#32016)
      
      * [NPU] enable async copy and  add wait before sync operation (#31956)
      
      * enable async copy and  add wait before sync operation
      
      * remove unneccessary wait
      
      * add FillNpuTensorWithConstant
      
      * refine
      
      * fix fill_constant
      
      * make TensorFromVector/TensorToVector sync
      
      * [NPU] Support dataloader on npu place. (#31867)
      
      * [NPU] Wait on NPUPlace (#32086)
      
      * [NPU] fix cast op (#32121)
      
      * fix npu kernel of cast op to handle casting to same dtype
      
      * add comments
      
      * [NPU] support cann 20.3 (#32044)
      
      * fix compile problem on cann 20.3
      
      * fix ut
      
      * fix test_mul
      
      * fix check_finite_and_scale
      
      * fix lookup_table_v2_grad
      
      * fix cmake
      
      * support print op
      
      * [NPU] Support npu save load (#31893)
      
      * support save load for NPU
      
      * add save load npu unittest
      
      * support np.array transform in NPU
      
      * fix errors
      
      * delete dygraph in unittest
      
      * add Wait
      
      * fix unittest
      
      * fix review comment
      
      * fix unittest problem
      
      * fix little problem
      
      * change aclrtSynchronizeDevice to aclrtSynchronizeStream for better performance (#32196)
      
      * change aclrtSynchronizeDevice to aclrtSynchronizeStream for better performace
      
      * refine code
      
      * fix NPUDeviceContext in all c++ unittest (#32198)
      
      * fix NPUDeviceContext in all c++ unittest
      
      * refine log
      Co-authored-by: Npangyoki <pangyoki@126.com>
      
      * [NPU] Remove TensorFromVector and avoid sync copy in npu op kernel for better performance (#31994)
      
      * enable async copy and  add wait before sync operation
      
      * remove unneccessary wait
      
      * add FillNpuTensorWithConstant
      
      * refine
      
      * fix fill_constant
      
      * change TensorFromVector to FillNpuTensorWithConstant
      
      * fix ignored api
      
      * delete extra unittest
      
      * fix little error
      
      * fix update_loss_scaling_op_npu and check_finite_and_unscale_op_npu
      
      * change TensorCopySync to TensorCopy
      
      * delete useless Wait and add StreamWait
      
      * fix npu_stream error
      
      * fix check_finite_and_unscale_op_npu TensorCopy
      
      * only save stream wait
      
      * fix NPUDeviceContext in all c++ unittest
      
      * delete wait
      Co-authored-by: Nzhiqiu <chenqiuliang@baidu.com>
      
      * delete useless unittest file (#32206)
      
      * Fix op test (#32231)
      
      * fix conditional block (#32243)
      
      * fix adam bug again (#32246)
      
      * fix compile
      
      * fix ut
      
      * fix ut
      Co-authored-by: Nliym27 <33742067+liym27@users.noreply.github.com>
      Co-authored-by: Npangyoki <pangyoki@126.com>
      cbe5c9f8
    • R
      update `get_api_md5`, using the real api name as the map's key (#32224) · 21dc044a
      Ren Wei (任卫) 提交于
      * get_api_md5 should prefer use the real name rather than the alias names
      
      * case for ArgSpec style. update the unittests
      
      test=document_fix
      21dc044a
  21. 14 4月, 2021 3 次提交
  22. 13 4月, 2021 2 次提交