1. 19 2月, 2021 1 次提交
  2. 18 2月, 2021 1 次提交
    • H
      Add Support for Tuple in for Loop (#30998) · c1375783
      Huihuang Zheng 提交于
      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]
      c1375783
  3. 07 2月, 2021 1 次提交
  4. 05 2月, 2021 1 次提交
  5. 03 2月, 2021 2 次提交
  6. 27 1月, 2021 1 次提交
  7. 26 1月, 2021 1 次提交
  8. 20 1月, 2021 3 次提交
  9. 14 1月, 2021 1 次提交
  10. 13 1月, 2021 2 次提交
  11. 11 1月, 2021 3 次提交
  12. 08 1月, 2021 3 次提交
  13. 07 1月, 2021 1 次提交
  14. 06 1月, 2021 1 次提交
  15. 31 12月, 2020 1 次提交
  16. 28 12月, 2020 1 次提交
  17. 22 12月, 2020 1 次提交
  18. 21 12月, 2020 1 次提交
  19. 18 12月, 2020 2 次提交
  20. 14 12月, 2020 1 次提交
    • L
      [Dy2Stat] 1. Fix bug of for-range stmts. 2. Support that step value is... · 0cad1152
      liym27 提交于
      [Dy2Stat] 1. Fix bug of for-range stmts. 2. Support that step value is negative in for-range stmts (#29519)
      
      1. Fix error in _build_cond_stmt of for-range stmts. 
      
      2. Support that step value is negative in for-range stmts
      
      3. Fix code because of the diff between Py2 and Py3
      0cad1152
  21. 11 12月, 2020 2 次提交
  22. 10 12月, 2020 1 次提交
  23. 09 12月, 2020 3 次提交
  24. 07 12月, 2020 1 次提交
  25. 04 12月, 2020 4 次提交