1. 27 2月, 2021 1 次提交
    • A
      [Cherry-Pick] Split Macros and Add modeling unittest (#31266) · 52f7e773
      Aurelius84 提交于
      * [CustomOp] Add Modeling with Custom op unittest (#31218)
      
      * add unittest for static/dygraph/dy2stat
      
      * add PE unittet
      
      * remove usless code
      
      * add unittest in CMakeList.txt
      
      * [CustomOp] Split build op marco & polish details (#31229)
      
      * split build op marco & polish details
      
      * revert register api del
      
      * fix other unittest
      
      * [CustomOP]Support Incremental compilation and Add Version management (#31228)
      
      * Support Incremental compilation and Add Version management
      
      * replace hash with hashlib
      
      * fix test_op_num unittest
      
      * Revert "fix test_op_num unittest"
      
      This reverts commit 2f78de976e1d7ca60915b2310717b38a32ae204a.
      Co-authored-by: NChen Weihang <chenweihang@baidu.com>
      52f7e773
  2. 26 2月, 2021 8 次提交
  3. 25 2月, 2021 6 次提交
  4. 24 2月, 2021 3 次提交
  5. 23 2月, 2021 12 次提交
  6. 22 2月, 2021 4 次提交
  7. 20 2月, 2021 3 次提交
  8. 19 2月, 2021 2 次提交
    • H
      [Cherry-pick][Dy2stat] Add Support for Tuple in Loop and Refine Error Message (#31036) · 9ad9f357
      Huihuang Zheng 提交于
      * Add Support for Tuple in for Loop (#30998)
      
      Dy2stat didn't support tuple as iteration variable in the past. This PR added there main cases:
      
             1). Non-enumerate case: for var1, var2 in var|var.numpy() will be re-written as:
                for FOR_ITER_TUPLE_PREFIX_x in var | var.numpy():
                  var1 = FOR_ITER_TUPLE_PREFIX_x[0]
                  var2 = FOR_ITER_TUPLE_PREFIX_x[1]
              2). Enumerate out tuple case: for t in enumerate(var|var.numpy) will be rewritten as:
                for FOR_ITER_TUPLE_INDEX_PREFIX_x, FOR_ITER_TUPLE_PREFIX_x in enumerate(var|var.numpy):
                  t = (FOR_ITER_TUPLE_INDEX_PREFIX_x, FOR_ITER_TUPLE_PREFIX_x)
              3). Enumerate inner tuple case: for i, (var1, (var2, va3)) in enumerate(var|var.numpy()) will
              be re-written as:
                for i, FOR_ITER_TUPLE_PREFIX_x in var | var.numpy():
                  var1 = FOR_ITER_TUPLE_PREFIX_x[0]
                  var2 = FOR_ITER_TUPLE_PREFIX_x[1][0]
                  var3 = FOR_ITER_TUPLE_PREFIX_x[1][1]
      
      * Refine fake_interface Error Message (#30981)
      
      Refine fake_interface Error Message
      9ad9f357
    • W
      cherry-pick pr (#31043) · 656124da
      Wilber 提交于
      656124da
  9. 18 2月, 2021 1 次提交