1. 08 Mar, 2020 1 commit
  2. 26 Feb, 2020 1 commit
  3. 07 Feb, 2020 1 commit
    • [REFACTOR][PY][API-Change] Polish tvm.runtime, tvm.runtime.module API update (#4837) · e0122c0e
      * [REFACTOR][PY-API] Polish tvm.runtime, tvm.runtime.module API update
      
      This PR updates the tvm.runtime to use the new FFI style.
      
      - Remove top-level tvm.module to avoid confusion between runtime.Module and IRModule
      - API changes wrt to runtime.Module
        - tvm.module.load -> tvm.runtime.load_module
        - tvm.module.enabled -> tvm.runtime.enabled
        - tvm.module.system_lib -> tvm.runtime.system_lib
      - Remove dep on api_internal from runtime.
      
      * Update module.load in the latest API
      Tianqi Chen committed
  4. 16 Jan, 2020 2 commits
  5. 06 Jan, 2020 1 commit
    • [REFACTOR] Automatically deduce function type signature in Registry.set_body_typed (#4623) · d5d63a44
      Previously we support a limited case of function type deduction and in many places
      we have to supply the type twice during set_body_typed (one in the template parameter, another in the lambda signature).
      
      This PR improves the deduce function by enablng automatic function signature deduction.
      
      ```
      TVM_REGISTER_GLOBAL("sub")
      .set_body_typed([](int x, int y) -> int { return x - y; });
      ```
      
      Unfortunately, because of template conflict, we can not support the original case
      where both type signature and lambda are supplied through set_body_typed.
      
      This PR refactors the existing regsitration to the new style.
      Tianqi Chen committed
  6. 09 Dec, 2019 1 commit
  7. 24 Nov, 2019 2 commits
  8. 11 Nov, 2019 1 commit
  9. 06 Nov, 2019 1 commit
  10. 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
  11. 17 Jul, 2019 1 commit
  12. 10 Apr, 2019 1 commit
    • [REFACTOR] Use more TypedPackedFuncs (#2981) · 51785062
      * Add `set_body_simple` to Registry, refactor a lot of code to use it
      
      * Add more types to Relay PackedFuncs
      
      * Add Registry::set_body_method to easily make Node methods into
      PackedFuncs
      
      * Add set_body_method, set_body_node_method; start typing api_lang
      
      * Add some docs, remove unused script
      
      * Fix mysterious linter problem
      
      * Touch up api_ir.cc
      
      * Fix some issues with TOPI argument counts
      
      * Revert changes to topi.cc to avoid problems with optional arguments
      
      * A little more cleanup
      
      * Type more of the api _ functions
      
      * Whitespace
      
      * Finalize names and docs for new registry helpers
      
      * Update docs
      James Gilles committed
  13. 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
  14. 06 Mar, 2019 1 commit
  15. 09 Jan, 2019 1 commit
  16. 20 Aug, 2018 1 commit
  17. 10 Aug, 2018 1 commit
  18. 09 Jul, 2018 1 commit
  19. 05 Apr, 2018 1 commit
  20. 02 Mar, 2018 1 commit
  21. 28 Feb, 2018 1 commit
  22. 27 Feb, 2018 1 commit
  23. 20 Jan, 2018 1 commit
  24. 31 Dec, 2017 1 commit
  25. 25 Sep, 2017 1 commit
  26. 05 Aug, 2017 1 commit
  27. 19 Jul, 2017 1 commit
  28. 16 Jul, 2017 1 commit
  29. 14 Jul, 2017 1 commit
  30. 11 Jul, 2017 1 commit