1. 27 Mar, 2018 1 commit
  2. 19 Oct, 2017 1 commit
  3. 17 Oct, 2017 1 commit
  4. 13 Oct, 2017 2 commits
    • Add same_as to NodeBase (#550) · fde9b570
      * Add same_as to NodeBase
      
      1. Most class inherited from NodeBase(Schedule, Stage, etc) still have
      the convenience of using '==' for object identity. And this is the right
      behavior for non-Expr classes.
      2. subclasses of ExprOp now create EQ expression when '==' is used.
      
      `__nonzero__` and `__bool__` in EQ and NE is a comprise that in some cases
      object identity semantics is still useful, like in unit test. For instance:
      ````
      assert a == b
      ````
      
      "a == b" will create EQ expression, assert then calls `__nonzero__` of the
      result expression. `Expr.__nonzero__` throws exception since it prohibits
      evaluating IR expression.
      
      More complex case like:
      ````
      assert a in b # b is dict
      ````
      
      it will call `__eq__` on a and all keys of b, then `__bool__` on the result
      expression. This could not easily be done by same_as.
      
      * Retain __hash__ from NodeBase in Python3
      Wei Chen committed
  5. 01 Oct, 2017 1 commit
  6. 15 Aug, 2017 1 commit
  7. 08 Aug, 2017 1 commit
  8. 03 Jul, 2017 1 commit
  9. 22 Jun, 2017 2 commits
  10. 08 May, 2017 1 commit
  11. 26 Apr, 2017 1 commit
  12. 22 Apr, 2017 1 commit
  13. 16 Apr, 2017 1 commit
  14. 15 Apr, 2017 1 commit
  15. 12 Mar, 2017 1 commit
  16. 10 Feb, 2017 1 commit
  17. 29 Jan, 2017 1 commit
  18. 13 Jan, 2017 1 commit
  19. 02 Dec, 2016 2 commits
  20. 03 Nov, 2016 1 commit
  21. 01 Nov, 2016 1 commit
  22. 27 Oct, 2016 1 commit
  23. 26 Oct, 2016 2 commits
  24. 19 Oct, 2016 1 commit
  25. 14 Oct, 2016 1 commit
  26. 13 Oct, 2016 5 commits