1. 02 8月, 2022 1 次提交
    • W
      [Eager] use eager final state instead intermediate state (#44722) · f1873b90
      Weilong Wu 提交于
      * [Eager] call final_state_slice under eager mode
      
      * rm useless comments
      
      * use eager final state instead intermidiate state
      
      * update fill_constant yaml
      
      * update fill_constant yaml
      
      * modify wrapped_infermeta_gen logic to fix special case
      
      * fix slice in manipulation
      
      * use fill_constant_
      
      * modify slice infermeta
      
      * rm final_state_conv2d
      
      * use final_state_slice
      
      * use final_state_slice only
      
      * polish slice, use final state
      
      * add paddle_throw for SplitInferMeta
      
      * rm fill_constant_ temply
      
      * recover array_equal, not allclose
      
      * recover original code
      f1873b90
  2. 29 7月, 2022 1 次提交
  3. 25 7月, 2022 1 次提交
    • Y
      【Hackathon No.21】为 Paddle 新增 SoftMarginLoss (#42364) · f9cd526b
      yangguohao 提交于
      * 2022-04-28
      
      * 2022-04-28_V2
      
      * 2022-04-30
      
      * 2022-04-30_V2
      
      * 2022-05-01
      
      * 2022-05-02
      
      * 2022-05-02_V2
      
      * 2022-05-05_V1
      
      * 2022-05-06_V1
      
      * 2022-05-07_V1
      
      * Update loss.py
      
      * 2022-05-07_V2
      
      * 2022-05-13_V1
      
      * Update test_soft_margin_loss.py
      
      * Update loss.py
      
      * Update loss.py
      
      * 2022-05-16_V1
      
      * 2022-05-19_V1
      
      * 2022-05-20_V1
      
      * Update test_soft_margin_loss.py
      
      * 2022-06-01_V1
      
      * 2022-06-05
      
      * 2022-06-07
      
      * 2022-06-07
      
      * 2022-06-08
      
      * 2022-06-08_V2
      
      * 2022-06-17-code_style
      
      * Modify python
      
      * 2022-06-20
      
      * for
      
      * for CI;test=document_fix
      Co-authored-by: NLigoml <39876205+Ligoml@users.noreply.github.com>
      f9cd526b
  4. 20 7月, 2022 1 次提交
  5. 17 6月, 2022 2 次提交
    • Y
      [PaddleHackathon No.14] (#41183) · 74c74b0f
      yangguohao 提交于
      * 2022-04-28
      
      * 2022-05-04
      
      * 2022-05-05_V1
      
      * 2022-05-05_V1
      
      * Update loss.py
      
      * Update loss.py
      
      * 2022-06-01_hook
      
      * 2022-06-05
      
      * 2022-06-07
      
      * 2022-06-07_V2
      
      * 2022-06-07_V2
      
      * 2022-06-17_codestyle
      74c74b0f
    • Y
      [Hackathon No.26] (#40487) · 9bbcca2b
      yangguohao 提交于
      * 'triplet_margin_loss'
      
      * 'test_file_corret'
      
      * '2022_03_27'
      
      * 2022_04_05
      
      * 2022-04-17_1
      
      * 2022-04-17
      
      * 2022-04-17_2
      
      * 2022-04-25
      
      * 2022-05-02_V1
      
      * 2022-05-06_V1
      
      * 2022-05-07_V1
      
      * Update loss.py
      
      * Update loss.py
      
      * Update loss.py
      
      * Update loss.py
      
      * Update loss.py
      
      * Update loss.py
      
      * Update loss.py
      
      * Update loss.py
      
      * Update loss.py
      
      * Update test_triplet_margin_loss.py
      
      * Update loss.py
      
      * 2022-06-01_pre-commit
      
      * 2022-06-05
      
      * 2022-06-06
      
      * 2022-06-06
      
      * code_style_check
      
      * code_style_check
      
      * Update loss.py
      
      * 2022-06-07_V2
      
      * Update loss.py
      
      * Update loss.py
      9bbcca2b
  6. 14 6月, 2022 1 次提交
    • Z
      Fix numpy 1.20+ deprecation warnings (#42929) · 90cf2299
      zlsh80826 提交于
      * Replace np.bool/np.bool8 with np.bool_
      
      * Replace np.object with np.object_
      
      * Replace np.complex with np.complex128
      
      * Replace np.float with np.float64
      
      * Replace np.int with np.int_
      
      * Rerun pre-commit for newer pre-commit configuration
      
      * Use builtin bool instead of np.bool_ based on the context
      90cf2299
  7. 13 6月, 2022 1 次提交
    • Y
      【Hachathon No.30】 (#40545) · 5d48528f
      yangguohao 提交于
      * 'TripletMarginDistanceLoss'
      
      * 'test_file'
      
      * '2022_03_27'
      
      * 2022-03-31
      
      * 2022-04-05
      
      * 2
      
      * 2022-04-17
      
      * 2022-04-17_2
      
      * 2022-04-17_3
      
      * 2022-04-17_4
      
      * 2022-04-25
      
      * 2022-05-02_V1
      
      * 2022-05-06_V1
      
      * 2022-05-07_V1
      
      * Update loss.py
      
      * Update loss.py
      
      * Update loss.py
      
      * Update loss.py
      
      * Update loss.py
      
      * Update loss.py
      
      * Update loss.py
      
      * Update loss.py
      
      * Update loss.py
      
      * Update loss.py
      
      * 2022-06-01_pre-commit
      
      * 2022-06-05
      
      * 2022-06-06
      
      * 2022-06-07
      
      * 2022-06-07_V2
      5d48528f
  8. 08 6月, 2022 1 次提交
    • N
      【Hackathon No.17】为 Paddle 新增 paddle.nn.CosineEmbeddingLoss 和... · 8dab2690
      Netpunk 提交于
      【Hackathon No.17】为 Paddle 新增 paddle.nn.CosineEmbeddingLoss 和 paddle.nn.functional.cosine_embedding_loss API (#41680)
      
      * add cosine embedding loss API
      
      * new version
      
      * new version
      
      * new version
      
      * set label to int32
      
      * new version
      
      * new version-test
      
      * new version
      
      * new version
      
      * new version
      
      * new version
      
      * new version
      
      * new version
      
      * new version
      
      * new version
      
      * new version
      
      * new version
      
      * new version
      
      * new version
      
      * new version
      
      * new version
      
      * new version
      
      * new version
      
      * aligning to Chinese document
      
      * add name parameter
      
      * activate CI
      
      * fix format error
      
      * unit test code format
      
      * format code
      8dab2690
  9. 07 6月, 2022 1 次提交
  10. 05 6月, 2022 1 次提交
    • S
      【code format check upgrade】 step2:yapf (#42944) · a072fca8
      Sing_chan 提交于
      * use yapf to format all python file
      
      * yapf exclude two unittests file for they rely on writing and reading file, and format will break them
      
      * disable diff_py_file because too many diff files cause command following failed
      a072fca8
  11. 31 5月, 2022 2 次提交
    • C
      [Eager] Polish append op using for model perf (#43102) · e9589e35
      Chen Weihang 提交于
      * polish append op using
      
      * fix var error
      
      * fix group norm impl
      e9589e35
    • T
      【PaddlePaddle Hackathon 2】16 新增 API RRelu (#41823) · 21e1d10f
      thunder95 提交于
      * rrelu逻辑部分
      
      * unregistered op kernel (unresolved)
      
      * commit before merge
      
      * 丰富测试用例
      
      * 修复rrelu-sig的bug
      
      * 修复cpu环境测试
      
      * 修改拼写错误
      
      * 修改code format
      
      * 尝试优化测试用例timeout的问题
      
      * 优化测试用例
      
      * 移除seed, 优化随机函数
      
      * update en doc for rrelu
      
      * fix rrelu en docs, test=document_fix
      
      * add paper link for en docs, test=document_fix
      
      * udpate en doc
      
      * add r,test=document_fix
      21e1d10f
  12. 19 5月, 2022 1 次提交
  13. 13 5月, 2022 1 次提交
  14. 12 5月, 2022 1 次提交
  15. 28 4月, 2022 1 次提交
  16. 26 4月, 2022 1 次提交
    • B
      【PaddlePaddle Hackathon 2】29、为 Paddle 新增 PixelUnshuffle 组网 API (#40728) · 5be9b824
      BrilliantYuKaimin 提交于
      * 增加PixelUnshuffle的形状推断
      
      * 增加PixelUnshuffle的算子注册
      
      * 增加PixelUnshuffle及其梯度的核函数
      
      * 增加PixelUnshuffle算子的描述
      
      * 增加PixelUnshuffle算子的签名
      
      * 在Python层面增加PixelUnshuffle
      
      * 增加PixelUnshuffle的单测
      
      * Update test_pixel_unshuffle.py
      
      * test=document_fix
      
      * Update test_pixel_unshuffle.py
      
      增加对extra_repr的测试
      
      * 修正代码格式
      
      * Update test_pixel_unshuffle.py
      
      修正对extra_repr的测试
      
      * 修改pixel_unshuffle核函数的实现位置
      
      * 修正代码格式
      
      * 完善对输入的检查
      
      * Update test_pixel_unshuffle.py
      
      * 完善pixel_unshuffle的输入检查
      
      * Update pixel_unshuffle_op.cc
      
      * Update unary.cc
      
      * add pixel_unshuffle
      
      * Update test_pixel_unshuffle.py
      
      * Update vision.py
      
      * 调整代码格式
      
      * Update vision.py
      
      * Delete extra spaces
      
      * Update pixel_unshuffle_sig.cc
      
      * Update vision.py
      
      * Update vision.py
      
      * add PixelUnshuffleGradInferMeta
      
      * remove PixelUnshuffleOpArgumentMapping
      
      * Update pixel_unshuffle_op.cc
      
      * 调整pixel_unshuffle及其梯度的核函数的实现位置
      
      * Update pixel_unshuffle_op.cc
      5be9b824
  17. 25 4月, 2022 1 次提交
    • B
      【PaddlePaddle Hackathon 2】24、为 Paddle 新增 nn.ChannelShuffle 组网 API (#40743) · bbaaf217
      BrilliantYuKaimin 提交于
      * Add infermeta for ChannelShuffle
      
      * Create channel_shuffle_grad_kernel.h
      
      * Create channel_shuffle_kernel.h
      
      * Create channel_shuffle_sig.cc
      
      * Create channel_shuffle_op.cc
      
      ChannelShuffle算子的描述
      
      * Create channel_shuffle_kernel_impl.h
      
      ChannelShuffle核函数的实现
      
      * Create channel_shuffle_grad_kernel_impl.h
      
      ChannelShuffle反向核函数的实现
      
      * Add kernel register of channel shuffle and grad
      
      注册ChannelShuffle及其反向的核函数
      
      * add nn.functional.channel_shuffle
      
      * add nn.ChannelShuffle
      
      * Create test_channel_shuffle.py
      
      * Update example of ChannelShuffle in vision.py
      
      * Update test_channel_shuffle.py
      
      * 修改channel_shuffle核函数的实现位置
      
      * 修正代码格式
      
      * 删除多余空格
      
      * 完善channel_shuffle的错误检查
      
      * Update unary.cc
      
      * Update channel_shuffle_op.cc
      
      * Update test_channel_shuffle.py
      
      * Update unary.cc
      
      * add channel_shuffle
      
      * Update test_channel_shuffle.py
      
      * Update vision.py
      
      * 调整代码格式
      
      * Update channel_shuffle_sig.cc
      
      * 更新ChannelShuffle的文档
      
      * 更新channel_shuffle的文档
      
      * remove ChannelShuffleOpArgumentMapping
      
      * add ChannelShuffleGradInferMeta
      
      * Update channel_shuffle_op.cc
      
      * 调整channel_shuffle及其梯度的核函数的位置
      bbaaf217
  18. 21 4月, 2022 1 次提交
  19. 18 4月, 2022 1 次提交
  20. 02 4月, 2022 1 次提交
  21. 24 3月, 2022 1 次提交
  22. 08 3月, 2022 1 次提交
    • X
      Fix fold python examples (#38636) · d4a4eb9d
      xiaoting 提交于
      * fix fold python examples, test=develop
      
      * fix size type, test=develop
      
      * fix python example, test=develop
      
      * fix fold shape check
      
      * fix fold dygraph mode, test=develop
      d4a4eb9d
  23. 24 2月, 2022 2 次提交
  24. 23 2月, 2022 1 次提交
  25. 22 2月, 2022 1 次提交
  26. 20 1月, 2022 1 次提交
    • W
      [Eager] Support Eager mode for some testcase (#38783) · d21074cd
      wanghuancoder 提交于
      * Rearranged Eager AutoCodeGen directory structure
      
      * Removed USE_OP in Eager AutoCodeGen
      
      * Enabled generation for Operators without Grad/Inputs/Outputs
      
      * Resolved operators without input
      
      * Fixed merge conflicts
      
      * Enabled Eager AutoCodeGen for 10+ more operators
      
      * Refactored Eager AutoCodeGen with more organized helper objects
      
      * Enabled Eager AutoCodeGen for operators with multiple OpBases
      
      * Adjusted Eager AutoCodeGen to Enable Passing Output Tensor as Input Argument
      
      * Handled Dispensable Inputs/Outputs in Eager AutoCodeGen
      
      * Adjusted function generation/call between Python-C API & Dygraph API
      
      * Synchronized auto-generated Python-C API with Dygraph Forward Functions
      
      * support more eager tensor api
      
      * fix merge compile error
      
      * fix compile error and fit develop code
      
      * support pure CPU
      
      * fix some logic error in eager_mode
      
      * support _varbase_creator in eager mode
      
      * Added safe_initialized interface to EagerTensor for use in processing dispensable inputs
      
      * for eager mode
      
      * refine
      
      * support multiple constructor for eager tensor
      
      * add place related code
      
      * polish code
      
      * specific randint with dtype of int64
      
      * Support pure cpu test
      
      * eager logic
      
      * refine test in pure cpu
      
      * eager logic
      
      * eager logic
      
      * eager logic, test=develop
      
      * skip core.eager when in inference, test=develop
      
      * refine, test=develop
      
      * refine, test=develop
      
      * call RetainGrad after run forward kernel, test=develop
      
      * refine, test=develop
      
      * support dygraph util, meta, guard test
      
      * eager test case
      
      * support inference test
      
      * refine test and fix initializer failed
      
      * modify eagertensor patch method
      
      * add eagertensor.clear_grandint, test=develop
      
      * refine, test=develop
      
      * refine, test=develop
      
      * refine, test=develop
      
      * support create varbase and fix retain grad error
      
      * call monkey_patch_varbase in _test_eager_guard, test=develop
      
      * fix windows error
      
      * split clear_gradient to clear_gradient and zero_grads, test=develop
      
      * refine, test=develop
      
      * refine, test=develop
      
      * support test_imperative_basic test in eager mode
      
      * remove additional log in variable.h
      
      * remove additional log in variable.h
      
      * remove additional code create in merge
      
      * eager
      
      * fix some eager logic, test=develop
      
      * refine, test=develop
      
      * refine, test=develop
      
      * refine, test=develop
      
      * patch_tensor_method_func, test=develop
      
      * refine, test=develop
      
      * eager test case, test=develop
      
      * refine, test=develop
      
      * eager, test=develop
      
      * eager, test=develop
      
      * eager optimizer, test=develop
      
      * eager optimizer, test=develop
      
      * eager test_imperative_optimizer_v2, test=develop
      
      * eager, test=develop
      
      * refine, test=develop
      
      * refine, test=develop
      
      * eager, test=develop
      
      * add resize in share buffer to, test=develop
      
      * eager, test=develop
      
      * fix _share_buffer_to, test=develop
      
      * refine, test=develop
      
      * refine, test=develop
      
      * support eager for dataloader,test=develop
      Co-authored-by: Njim19930609 <jim19930609@gmail.com>
      Co-authored-by: NJiabinYang <360788950@qq.com>
      d21074cd
  27. 12 1月, 2022 1 次提交
  28. 10 1月, 2022 2 次提交
  29. 07 1月, 2022 1 次提交
    • W
      modify mish op and add mish api (#38734) · 8c92337c
      wangxinxin08 提交于
      * add mish operator and api
      
      * remove redundant code and modify grad_atol of mish unittest
      
      * modify mish code to be consistent with other activation implementation
      8c92337c
  30. 31 12月, 2021 1 次提交
    • X
      Add fold opereators (#38613) · 8898dce1
      xiaoting 提交于
      * add fold opereators, test=develop
      
      * add fold opereators, test=develop
      
      * add fold opereators, test=develop
      
      * update fold op error test, test=develop
      
      * fix unitext, test=develop
      
      * fix unitext, test=develop
      8898dce1
  31. 29 12月, 2021 1 次提交
  32. 15 12月, 2021 1 次提交
    • Skr.B's avatar
      Add New API nn.HingeEmbeddingLoss (#37540) · 3b85864a
      Skr.B 提交于
      * add hinge_embedding_loss
      
      * fix test_API
      
      * test_API succeed
      
      * add English doc
      
      * fixed using of expired fluid api
      
      * fix doc
      
      * fix doc and rm python/paddle/fluid/layers/loss.py
      
      * get raw python/paddle/fluid/layers/loss.py back
      
      * fix Examples bug in English doc
      
      * unique -> flatten
      
      * fix api code
      
      * fix English doc
      
      * fix functional loss English doc
      
      * fix Example doc
      
      * .numpy() -> paddle.unique()
      
      * fix unique
      
      * fix label_item_set
      
      * modified judgment equation
      
      * Got a beautiful loss equation
      
      * use paddle.to_tensor
      
      * fix loss and add static check
      
      * fix loss and add static check
      
      * delta -> margin
      3b85864a
  33. 10 12月, 2021 1 次提交
  34. 07 12月, 2021 1 次提交
  35. 30 11月, 2021 1 次提交
  36. 25 11月, 2021 1 次提交
    • M
      【PaddlePaddle Hackathon】6、在 Paddle 中新增 ZeroPad2d (#37151) · 81861f69
      Matsumoto GAO 提交于
      * add zeropad2d v0.1
      
      * add zeropad2d v0.2
      
      * add zeropad2d v0.3
      
      * add zeropad2d v0.3
      
      * add zeropad2d v0.3
      
      * add zeropad2d v0.4
      
      * add zeropad2d v0.5
      
      * add zeropad2d v0.5 codestyle
      
      * add zeropad2d v0.5 codestyle
      
      * add zeropad2d v0.6 functional
      
      * add zeropad2d v0.6 functional
      
      * add zeropad2d v0.6 functional
      81861f69