Skip to content
Snippets Groups Projects
  1. Oct 26, 2017
  2. Oct 25, 2017
  3. Oct 24, 2017
  4. Oct 23, 2017
  5. Oct 22, 2017
  6. Oct 20, 2017
  7. Oct 19, 2017
    • Wei Chen's avatar
      [PYTHON] Improve equality wrapper (#567) · ab858e3f
      Wei Chen authored
      use `object.__eq__`(default object identity comparison) as default
      implementation of same_as. This should be OK since `EqualOp` and
      `NotEqualOp` are pure Python object, `object.__eq__` is sufficient.
      ab858e3f
  8. Oct 17, 2017
  9. Oct 16, 2017
  10. Oct 15, 2017
  11. Oct 14, 2017
  12. Oct 13, 2017
    • Wei Chen's avatar
      Add same_as to NodeBase (#550) · fde9b570
      Wei Chen authored
      * 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
      fde9b570
    • Aditya Atluri's avatar
      added support for rocm gpu autodetect (#549) · ed783689
      Aditya Atluri authored
      * added support for rocm gpu autodetect
      
      * changed type casting from old style to static_cast
      
      * fixed code to generate gfx specific code object
      
      * fixed namespaces
      ed783689
    • Hu Shiwen's avatar
      add msvc in cc (#531) · 87c929f5
      Hu Shiwen authored
      87c929f5
    • masahi's avatar
      Add rocm target to topi tests (#548) · 85c545c7
      masahi authored
      * add masahi to contributors
      
      * enable rocm target in topi tests
      85c545c7
    • Tianqi Chen's avatar
    • ziheng's avatar
      b20678b0
  13. Oct 12, 2017
  14. Oct 11, 2017
  15. Oct 10, 2017
  16. Oct 09, 2017
  17. Oct 08, 2017
Loading