1. 22 11月, 2021 2 次提交
  2. 15 11月, 2021 1 次提交
  3. 11 11月, 2021 2 次提交
    • W
      [Bug fixes] Add default arg to enhance varbase ClearGradient func (#36837) · 63f5c2d4
      Weilong Wu 提交于
      * Add default arg to enhance varbase ClearGradient func
      
      * Removed default arg, use a Flag to enhance varbase ClearGradient func
      
      * Renamed Flags to FLAGS_real_release
      
      * Use default arg to enhance varbase ClearGradient func and expose two func to set/get gradient isEmpty
      
      * Removed DECLARE_bool statement
      
      * Polished Code
      63f5c2d4
    • W
      [New features] Support VarBase to expose func (#36965) · 52645667
      Weilong Wu 提交于
      * Expose func for varbase
      
      * Expose func for varbase and enhance varbase init func
      
      * Change func name and add test case for _CopyGradientWith
      
      * Rename func
      
      * Add test cases to increase coverage
      
      * Refine the logic of _to func
      
      * Replace numel() with _numel(), Add test code
      52645667
  4. 08 11月, 2021 1 次提交
  5. 20 10月, 2021 1 次提交
    • S
      Add FasterTokenizer Operator (#34491) · 3f2d6a3f
      Steffy-zxf 提交于
      Add Tokenizer related functionalities for Transformer model in order that the process of training and predicting is consistent.
      
      * support the text string as an input Tensor
      * support the "VOCAB"unordered_map<wstring, int> as an input Tensor to lookup tokens
      * Tokenizer used for BERT. This tokenizer applies an end-to-end, text string to wordpiece tokenization.
      * It first applies basic tokenization, followed by wordpiece tokenization.
      3f2d6a3f
  6. 18 10月, 2021 1 次提交
    • S
      Add operators for async read & async write (#36333) · 3845afff
      Siming Dai 提交于
      * fix async_read bug
      
      * change index place to cpu
      
      * add tensor size judge
      
      * add async_read & async_write test
      
      * fix bug in async_write
      
      * fix mac py3 ci
      
      * fix bug for cpu version paddle
      
      * fix windows ci bug
      
      * change input argument error type
      
      * change const_cast to mutable_data
      
      * add async_write out-of-bound check and consumate error hint
      
      * fix a small bug for dst_tensor
      
      * add docs and refine codes
      
      * refine docs
      
      * notest,test=windows_ci
      
      * fix windows ci
      
      * fix require
      
      * fix code-block
      
      * add core.is_compiled_with_cuda()
      3845afff
  7. 13 10月, 2021 1 次提交
  8. 17 9月, 2021 1 次提交
    • Z
      [AMP] Support pure fp16 training mode for dygraph (#35521) · adaeee4d
      zhangbo9674 提交于
      * add pure fp16 major function in auto_cast & tracer
      
      * support master weight in dygraph for pure fp16
      
      * check mix dtype of fp16&fp32 for check_finite_and_unscale op
      
      * change pure fp16 funtion name
      
      * refine some bug in auto_cast
      
      * refine auto_cast interface logic
      
      * add param _casted_by_pure_fp16 for class Layer
      
      * support state_dict hook for save model by user appointed dtype in pure_fp16_decorator
      
      * refine pure_fp16_decorator as decorator
      
      * add unittest
      
      * add comment
      
      * add comment
      
      * support recompute
      
      * add comment for auto_cast and decorator
      
      * support to_static_state_dict for paddle.jit.save
      
      * unlimite models num and optimizers num
      
      * add lookup_table in black_list
      
      * fix momentum and layer state_dict
      
      * fix bug in layer state_dict
      
      * fix bug in layer state_dict_helper
      
      * refine unittest
      
      * refine test_momentun_op
      
      * refine interface and some code
      
      * refine amp_decorator interface
      
      * refine pure fp16 interface
      
      * refine master weight interface
      adaeee4d
  9. 15 9月, 2021 1 次提交
  10. 10 9月, 2021 1 次提交
  11. 08 9月, 2021 1 次提交
  12. 06 9月, 2021 1 次提交
  13. 01 9月, 2021 1 次提交
    • Z
      Support settiem by Bool index (#35133) · d387820d
      zyfncg 提交于
      * Support getitem by Bool index
      
      * delete some debug info of bool index
      
      * support the case that the shape of bool index is different from indexed tensor
      
      * support setitem by bool index
      
      * add the unittest for throwing exception
      
      * merge conflict
      
      * add check for int tensor when index is bool
      d387820d
  14. 26 8月, 2021 1 次提交
  15. 25 8月, 2021 1 次提交
    • L
      fix potential tensor leak in tensor.__setitem__ (#35013) · 763b6d91
      Leo Chen 提交于
      * fix index tensor leak in __setitem__
      
      * fix another usage of PyTuple_Pack
      
      * refine code
      
      * refine code
      
      * handle None index
      
      * add Py_DecRef
      
      * revert ut
      
      * refine code
      
      * merge develop
      
      * use RAII
      
      * follow comments
      763b6d91
  16. 23 8月, 2021 1 次提交
    • Z
      Support gettiem by Bool index (#35026) · b6dc16cb
      zyfncg 提交于
      * Support getitem by Bool index
      
      * delete some debug info of bool index
      
      * support the case that the shape of bool index is different from indexed tensor
      b6dc16cb
  17. 16 8月, 2021 1 次提交
  18. 13 8月, 2021 1 次提交
  19. 04 8月, 2021 1 次提交
  20. 26 7月, 2021 1 次提交
  21. 22 7月, 2021 1 次提交
  22. 09 7月, 2021 1 次提交
  23. 24 6月, 2021 1 次提交
    • H
      [NPU] support dygraph execution on npu place(#33579) · 6aea6be2
      houj04 提交于
      * in NPU environment, use CPUPlace for missing operators.
      
      * in NPU environment, use CPUPlace for missing operators.
      
      * fix TensorCopy bug and add unit test.
      
      * fix code style.
      
      * add more unit tests.
      6aea6be2
  24. 15 6月, 2021 1 次提交
  25. 11 6月, 2021 1 次提交
  26. 19 5月, 2021 1 次提交
  27. 13 5月, 2021 1 次提交
  28. 12 5月, 2021 1 次提交
  29. 30 4月, 2021 1 次提交
  30. 26 4月, 2021 1 次提交
  31. 25 4月, 2021 2 次提交
  32. 15 4月, 2021 1 次提交
    • W
      Customizable Python Layer in Dygraph (#32130) · 29f65225
      WeiXin 提交于
      * custom python backward
      
      * polish up the code
      
      * polish up the code
      
      * polish up the code.
      
      * Fix code format and comments.
      
      * Delete redundant files.
      
      * add unnittest.
      
      * edit unnittest.
      
      * edit unnittest.
      
      * Remove redundant header files.
      
      * Improve coverage and remove redundant code.
      
      * support saving for backward.
      
      * polish code according to comments.
      
      * Add support type for PyLayer.
      
      * Modify the DOC.
      
      * polish Doc.
      
      * polish Doc.
      
      * polish Doc.
      
      * polish Doc.
      
      * polish Doc.
      
      * polish Doc.
      
      * polish code and make the code robust.
      
      * Modify the code format.
      29f65225
  33. 14 4月, 2021 1 次提交
  34. 13 4月, 2021 1 次提交
    • C
      add layer.to api (#32040) · 6e946e9d
      chentianyu03 提交于
      * add layer.to api
      
      * add layer.to api
      
      * add layer.to api
      
      * add the doc for Layer.to
      
      * add input type checking
      
      * modify assert and import bug
      
      * format code style
      
      * format code style
      
      * make place support str type
      
      * add SetGradVarBase method to set the gradient after conversion
      
      * modify argument palce to device
      
      * modify argument palce to device
      
      * modify doc of layers.to API
      
      * add xpuplace to device argument
      6e946e9d
  35. 01 4月, 2021 3 次提交
    • C
      add custom init grad for backward function (#31540) · 83b953f5
      chentianyu03 提交于
      * add custom init grad for backward function
      
      * add custom init grad for backward function
      
      * handle when the grad_tensor is none
      
      * handle when the grad_tensor is none
      
      * fix the args type error on windows platform
      
      * modify the args order and doc
      
      * format code
      
      * add grad_tensor to xpu
      
      * modify the grad_tensor type check
      
      * add paddle.backward api to support multi tensors gradient compute
      
      * add paddle.backward api to support multi tensors gradient compute
      
      * add paddle.atuograd module and backward api
      
      * change tensor.backward func args
      
      * modify tensor backward api
      
      * remove create_graph intputs args
      
      * add doc and examplex code for backward api
      
      * when have the same tensor, throw error
      
      * modify test Init func args
      
      * modify the execute.Init func args in test files
      
      * add paddle.autograd package in setup.py.in
      
      * modify error msg, remove _run_backward method in class Tensor
      
      * add test cases for backward api
      83b953f5
    • K
      new group (#31682) · 07741593
      kuizhiqing 提交于
      * new group
      
      * ci compatible fix
      
      * assert nccl
      07741593
    • C
      Refactor and simplify hook design & add Tensor.register_hook API (#31775) · dbeb3ea4
      Chen Weihang 提交于
      * refactor and simplify hook design
      
      * fix reducer add hook error
      
      * add Tensor.register_hook basic impl
      
      * refine prepare data impl
      
      * revert prepare data change
      
      * support register_hook for Tensor
      
      * add hook test in model
      
      * polish tests and doc example
      
      * fix double grad test failed
      
      * remove reduce hook func
      
      * fix set empty error
      
      * polish code by comments
      
      * change reduce_hook to mutable_hook
      
      * remove useless tmp_ins
      
      * fix shape code format error
      
      * fix shape code format error
      dbeb3ea4