1. 31 3月, 2022 22 次提交
  2. 30 3月, 2022 18 次提交
    • 0
      Fix test_jit_save_load (#41114) · 4b61918d
      0x45f 提交于
      4b61918d
    • Z
      [Phi] Move Rnn Op from fluid to phi (#41007) · 66cf8b08
      zyfncg 提交于
      * move rnn kernel to phi
      
      * move infershape of rnn to phi
      
      * fix HIP bug
      
      * rename function
      
      * fix HIP bug
      
      * fix hip bug
      66cf8b08
    • R
      [MoE] Moe apis (#41092) · aac7879a
      Roc 提交于
      * add random routing op
      
      add _random_routing api in utils
      
      add random routing ut
      
      * # This is a combination of 10 commits.
      # The first commit's message is:
      add expert count op
      
      add ut for expert_count
      
      # This is the 2nd commit message:
      
      update UT only for cuda
      
      # This is the 3rd commit message:
      
      fix for rocm
      
      # This is the 4th commit message:
      
      update ut
      
      # This is the 5th commit message:
      
      add moe module
      
      # This is the 6th commit message:
      
      add expert count op
      
      add ut for expert_count
      
      # This is the 7th commit message:
      
      update UT only for cuda
      
      # This is the 8th commit message:
      
      update ut
      
      # This is the 9th commit message:
      
      add moe module
      
      # This is the 10th commit message:
      
      make expert count private
      
      * add assign pos op
      
      * fix upper num name
      
      * add api _assign pos
      
      * add ut for assign pos op
      
      * update date
      
      * add op about moe gate
      
      update utils
      
      add limit by capacity op
      
      add ut for limit_by_capacity
      
      add ut for prune_gate_by_capacity
      
      add ut for limit_by_capacity
      
      add ut for prune_gate_by_capacity
      
      * fix for win
      
      * fix bugs in test_limit_by_capacity_op
      
      * update ut
      
      * update for test (timeout)
      
      * fix ut
      
      * update
      
      * update(fix) ut for win
      
      * moe apis in incubate
      
      * # This is a combination of 10 commits.
      # The first commit's message is:
      add expert count op
      
      add ut for expert_count
      
      # This is the 2nd commit message:
      
      update UT only for cuda
      
      # This is the 3rd commit message:
      
      fix for rocm
      
      # This is the 4th commit message:
      
      update ut
      
      # This is the 5th commit message:
      
      add moe module
      
      # This is the 6th commit message:
      
      add expert count op
      
      add ut for expert_count
      
      # This is the 7th commit message:
      
      update UT only for cuda
      
      # This is the 8th commit message:
      
      update ut
      
      # This is the 9th commit message:
      
      add moe module
      
      # This is the 10th commit message:
      
      make expert count private
      
      * add assign pos op
      
      * fix upper num name
      
      * add api _assign pos
      
      * add ut for assign pos op
      
      * update date
      
      * fix for win
      
      * update for test (timeout)
      
      * fix ut
      
      * update
      
      * fix ut for number count
      
      * add apis and utils
      
      * add gate apis
      
      * add moe and grad clip apis
      
      * update moe apis
      
      * add ops for moe gate
      
      * fix
      
      * update for base moe layer api
      
      * add random routing op
      
      add _random_routing api in utils
      
      add random routing ut
      
      * fix for dygraph
      
      * update with ranodm routing
      
      * update
      
      * fix ut for limit by capacity
      
      * update
      
      * update limit by capacity for easily to switch to single thread mode
      
      * update api docs
      Co-authored-by: Nhlygit66666 <2570058140@qq.com>
      aac7879a
    • C
      Revert "Revert "[Phi] Move elementwise_floordiv and elementwise_pow to phi... · eef46770
      Chen Weihang 提交于
      Revert "Revert "[Phi] Move elementwise_floordiv and elementwise_pow to phi (#40993)" (#41065)" (#41110)
      
      This reverts commit 3a6f1135.
      eef46770
    • F
      Add new APIs for GPU memory monitoring (max_memory_allocated,... · afe02e9d
      From00 提交于
      Add new APIs for GPU memory monitoring (max_memory_allocated, max_memory_reserved, memory_allocated, memory_reserved) (#38657)
      
      * Add new API memory_reserved
      
      * Add memory_allocated, max_memory_reserved and max_memory_allocater
      
      * Fix CI error
      
      * Fix CI error
      
      * Enhance UT
      
      * Add FLAGS_memory_stats_opt
      
      * Add STATS macro functions
      
      * Add StatAllocator
      
      * Fix CI errors
      
      * Add UT
      
      * Fix CI errors
      afe02e9d
    • C
      Revert "Revert "[Phi] trans logsumexp op (#40790)" (#41068)" (#41109) · ee8eeb45
      Chen Weihang 提交于
      This reverts commit 054fc997.
      ee8eeb45
    • H
      Revert "Revert "Move some activation to phi (#40727)" (#41056)" (#41095) · 91bb52cd
      hong 提交于
      This reverts commit 05f3d48e.
      91bb52cd
    • Z
      [DoubleGrad PR #3] Supported higher-order GradNode generation (#41051) · abd2df4c
      Zhanlue Yang 提交于
      * [Refactor] refactored eager_gen.py PR #2
      
      * [DoubleGrad PR #1] Decoupled code generation logics for Dygraph ForwardFunctions and GradNodes
      
      * Fixed minor issue
      
      * Adjusted logics of GenerateNodeCreationCodes and GenerateForwardDefinition
      
      * Fixed issues
      
      * Supported higher-order grad node generation
      
      * [DoubleGrad PR #4] Supported higher-order GradNode generation
      
      * Fixed yaml typo
      abd2df4c
    • P
      add _reset_grad_inplace_version (#41101) · cb8afc24
      pangyoki 提交于
      cb8afc24
    • A
      [Yaml] Fix topk yaml compilation problem on Windows (#41082) · 95265d5c
      Aurelius84 提交于
      * [Yaml] Fix topk yaml compilation on Windows
      
      * fix make_shared
      
      * fix conflict
      95265d5c
    • Y
      add bilinear interpolate v2 to xpu list and unitteset, *test=kunlun (#41037) · 4e86dff2
      ykkk2333 提交于
      * add bilinear interpolate v2 to xpu list and unitteset, *test=kunlun
      
      * Delete ps_usr_print_log
      
      * Delete ps_usr_print_log
      
      * Delete xpu_op_test
      4e86dff2
    • Z
      Apply TransposeFolding & GemmRewriter passes. (#41084) · c761b48b
      Zhen Wang 提交于
      c761b48b
    • W
      [Eager] dlpack (#40811) · 4d300224
      wanghuancoder 提交于
      * dlpack eager, test=develop
      
      * eager test_base_layer, test=develop
      
      * fix error report, test=develop
      
      * eager _getitem_from_offset, test=develop
      
      * refine, test=develop
      
      * refine offset, test=develop
      
      * add test_inner test_outer, test=develop
      
      * refine, test=develop
      
      * refine, test=develop
      4d300224
    • Y
      move elementwise_mul selected rows input (#41042) · 13f1641d
      YuanRisheng 提交于
      13f1641d
    • Z
      Optimize the perf of top_k when k is too large (#40941) · 45078d9f
      Zhang Zheng 提交于
      * Optimize the perf of top_k when k is too large
      
      * fix rcom compile
      
      * fix
      
      * only compile in cuda
      
      * fix log info
      45078d9f
    • H
      swish and pow op for xpu test=kunlun (#40654) · d951f3af
      houj04 提交于
      * swish and pow op for xpu. test=kunlun
      
      * fix code style. test=kunlun.
      
      * use pow_grad xdnn api. test=kunlun.
      d951f3af
    • H
      Optimize the onnxruntime code (#41044) · f12b5260
      heliqi 提交于
      f12b5260
    • P
      suppor inplace in tensor_method_setitem (#40915) · 7170c687
      pangyoki 提交于
      * suppor inplace in tensor_method_setitem
      
      * delete bump_inplace_version
      
      * optimize inplace unittest
      
      * fix
      
      * fix setitem bug
      
      * update eager_generator
      
      * optimize inplace unittest
      
      * little change
      7170c687