1. 22 Dec, 2019 1 commit
    • [REFACTOR][DTYPE] Isolate dtype to runtime (#4560) · 7fa8aab5
      dtype.h -> runtime/data_type.h
      
      Changes:
      - Rename all old reference of tvm::Type to DataType
      - ExprNode.type -> ExprNode.dtype
      - Expr.type() -> Expr.dtype()
      - Change Expr related functions to expr_operator.
        - DataType::min() -> min_value(DataType)
        - DataType::max() -> max_value(DataType)
      - Move type constructor Int, UInt, Float, Handle, Bool into DataType.
        - Int(bits) -> DataType::Int(bits)
        - UInt(bits) -> DataType::UInt(bits)
      Tianqi Chen committed
  2. 01 Nov, 2019 1 commit
    • [NODE][REFACTOR] Rename IRFunctor->NodeFunctor, use func pointer (#4247) · 9a3d2ec9
      * [NODE][REFACTOR] Rename IRFunctor->NodeFunctor, use function pointer for dispatching.
      
      Previously we used std::function for the functor dispatching.
      It introduces additional overhead and problems during dll destruction(of std::function).
      
      This PR changes the std::function to function pointers.
      This change a bit restrictions around the set_dispatch that we can get around,
      but will improve the general efficiency by reducing one level of indirection in the std::function.
      We also no longer need special marcos to register functions to the Functor.
      Tianqi Chen committed
  3. 21 Oct, 2019 1 commit
    • [REFACTOR][NODE][RUNTIME] Move Node to the new Object protocol. (#4161) · 7895adb2
      * [REFACTOR][NODE][RUNTIME] Move Node to the new Object protocol.
      
      This PR removes the original node system, and make node as a subclass of Object.
      This is a major refactor towards a better unified runtime object system.
      
      List of changes in the refactor:
      
      - We now hide data_ field, use Downcast explicitly to get a sub-class object.
      - Removed the node system FFI in python.
      - Removed the node C API, instead use PackedFunc for list and get attrs.
      - Change relay::Op::set_attr_type_key(attr_key_name) to relay::Op::set_attr_type<AttrType>().
        - This change was necessary because of the new Object registration mechanism.
        - Subsequent changes to the op registrations
        - The change revealed a few previous problems that is now fixed.
      - Patched up a few missing node type registration.
        - Now we will raise an error if we register object that is not registered.
      - The original node.h and container.h are kept in the same location.
      - Calling convention: kObjectHandle now equals the old kNodeHandle, kNodeHandle is removed.
      - IRFunctor now dispatches on ObjectRef.
      - Update to the new type checking API: is_type, derived_from are replaced by IsInstance.
      - Removed .hash member function, instead use C++ convention hasher functors.
      
      * Address review comments
      Tianqi Chen committed
  4. 11 Oct, 2019 1 commit
  5. 25 Sep, 2019 1 commit
  6. 01 Sep, 2019 1 commit
    • [Relay][Any] Add shape func for dynamic shape (#3606) · eef35a57
      * init shape func in interpreter and vm compiler
      
      * Update interpreter
      
      * fix
      
      * lint
      
      * lint
      
      * fix
      
      * remove hack
      
      * update
      
      * fix
      
      * fix
      
      * update
      
      * address comments & update for shape_of
      
      * fix lint
      
      * update
      
      * fix hybrid
      
      * lint
      
      * fix bug & add take shape func
      
      * lint
      
      * lint
      
      * update
      
      * fix flaky test
      
      * add todo
      Haichen Shen committed
  7. 14 Jul, 2019 1 commit
  8. 11 Jul, 2019 1 commit
  9. 08 Apr, 2019 1 commit
    • [HEADER] Add Header to Comply with ASF Release Policy (#2982) · cffb4fba
      * [HEADER] ASF header dir=include
      
      * [HEADER] ASF Header dir=src
      
      * [HEADER] ASF Header -dir=python
      
      * [HEADER] ASF header dir=topi
      
      * [HEADER] ASF Header dir=nnvm
      
      * [HEADER] ASF Header -dir=tutorials
      
      * [HEADER] ASF Header dir=tests
      
      * [HEADER] ASF Header -dir=docker
      
      * fix whitespace
      
      * [HEADER] ASF Header -dir=jvm
      
      * [HEADER] ASF Header -dir=web
      
      * [HEADER] ASF Header --dir=apps
      
      * [HEADER] ASF Header --dir=vta
      
      * [HEADER] ASF Header -dir=go
      
      * temp
      
      * [HEADER] ASF Header --dir=rust
      
      * [HEADER] Add ASF Header --dir=cmake
      
      * [HEADER] ASF Header --dir=docs
      
      * [HEADER] Header for Jenkinsfile
      
      * [HEADER] ASF Header to toml and md
      
      * [HEADER] ASF Header to gradle
      
      * Finalize rat cleanup
      
      * Fix permission
      
      * Fix java test
      
      * temporary remove nnvm onnx test
      Tianqi Chen committed
  10. 12 Mar, 2019 1 commit
  11. 03 Mar, 2019 1 commit
  12. 13 Feb, 2019 1 commit
    • [Hybrid script] Backend support (#2477) · c53dd102
      * a preliminary version is done?
      
      * we no longer need the redundant hybrid/api.py
      
      * support assert stmt
      
      * cast supported
      
      * intrin -> runtime; util is mainly in charge of compilation time
      
      * assert statement
      
      * fix python lint
      
      * fix cpp lint
      
      * on the way to module
      
      * rollback .cc
      
      * fix typo, no direct expose then
      
      * @vinx13 ceil is added i guess?
      
      * wip...
      
      * temp commit
      
      * fix import
      
      * i preliminary version is done?
      
      * on the way to build hybrid module
      
      * nearly fixed...
      
      * dumped python are equiv as original python
      
      * on the way to bootstrap
      
      * cpu bootstrap done
      
      * bootstrap!
      
      * fix lint
      
      * fix doc
      
      * resolve some review concerns
      
      * support load/save
      
      * fix lint
      
      * thanks to xqdan fixed my typo
      
      * fix build, make dump non-optional
      
      * add vthread
      
      * jesus why i added this
      Jian Weng committed
  13. 03 Feb, 2019 1 commit
  14. 15 Jan, 2019 1 commit
    • [Hybrid Script] Supporting scheduling hybrid script (#2416) · ac54577f
      * on the way to enable hybrid schedule
      
      * I think I am done with imperfect loop split?
      
      * copyright watermark
      
      * loop annotation
      
      * fix lint
      
      * fix lint 1
      
      * shit!
      
      * loop reorder supported
      
      * support bind to add some tests
      
      * fused tested
      
      * imperfect loop testcase
      
      * fix lint
      
      * add bind testcase
      
      * fix doc
      
      * fix online edit typo
      
      * resolve @mercymercy review
      
      * fix indent
      
      * i should convince myself it is not flaky test first
      
      * fix test hybrid
      
      * how many flaky test are you expecting; i ball ball u to let me pass
      
      * rebase halide...
      Jian Weng committed
  15. 19 Nov, 2018 1 commit
  16. 04 Oct, 2018 1 commit
  17. 20 Sep, 2018 1 commit
  18. 23 Aug, 2018 1 commit
  19. 17 Jun, 2018 1 commit
  20. 28 Mar, 2018 1 commit
  21. 06 Feb, 2018 1 commit
  22. 08 Jan, 2018 1 commit
  23. 17 Dec, 2017 1 commit
  24. 30 Aug, 2017 1 commit
  25. 15 Jul, 2017 1 commit
  26. 05 Jul, 2017 1 commit
  27. 03 Jul, 2017 1 commit
  28. 09 Apr, 2017 1 commit
  29. 12 Mar, 2017 1 commit