1. 25 Jul, 2019 1 commit
  2. 23 Jul, 2019 1 commit
    • [Runtime] [ThreadPool] Make SpscTaskQueue::Pop(..) spin_count configurable (#3577) · 9b1c2e08
      In cases where we have multiple models or threadpools active, spinning around
      `sched_yield()` may not be desirable, as it prevents the OS from effectively
      scheduling other threads.
      
      Thus, allow users to conditionally disable this behaviour (via an environment
      variable `TVM_THREAD_POOL_SPIN_COUNT`, similar to existing environment flags for
      the thread pool such as `TVM_BIND_THREADS`, etc).
      
      This substantially improves tail latencies in some of our multi-tenant
      workloads in practice.
      
      Unit tests have been added - on my laptop, running:
      
      ```
      TVM_THREAD_POOL_SPIN_COUNT=0 ./build/threading_backend_test;
      TVM_THREAD_POOL_SPIN_COUNT=1 ./build/threading_backend_test;
      ./build/threading_backend_test;
      ```
      
      gives https://gist.github.com/ajtulloch/1805ca6cbaa27f5d442d23f9d0021ce6 (i.e.
      97ms -> <1ms after this change)
      Andrew Tulloch committed
  3. 15 Jul, 2019 1 commit
  4. 11 Jul, 2019 1 commit
  5. 10 Jul, 2019 1 commit
  6. 06 Jul, 2019 1 commit
  7. 02 Jul, 2019 1 commit
  8. 01 Jul, 2019 1 commit
  9. 03 Jun, 2019 1 commit
  10. 24 May, 2019 1 commit
  11. 16 May, 2019 1 commit
  12. 10 May, 2019 1 commit
  13. 08 May, 2019 1 commit
  14. 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
  15. 10 Mar, 2019 1 commit
  16. 03 Mar, 2019 1 commit
  17. 02 Mar, 2019 1 commit
  18. 21 Feb, 2019 1 commit
  19. 18 Feb, 2019 1 commit
  20. 16 Feb, 2019 1 commit
    • [Relay] Algebraic data types (#2442) · 2ae3124f
      * First pass on ADTs
      
      * Add doc string for tag field
      
      * Visit constructors in TypeVisitor for TypeData
      
      * Add to description of type call
      
      * Add type call to type solving and unification
      
      * Make type mutator for typecall consistent with others (only create new node if there's a change)
      
      * Ensure kindchecking can handle type calls and typedata
      
      * Fix bad nesting in module constructor
      
      * Correctly construct call in typecall test
      
      * Add call override for ordinary vars (do we want this?)
      
      * Remove generalization hack from type inference because it was breaking ADT constructors
      
      * Check that there are no free type vars in exprs after inferring type
      
      * Free var checks need module because of ADT constructors
      
      * Typecall test can't have unbound type var, make it global
      
      * Uncomment tmap test and remove comments about failing to infer ret type; those work now
      
      * Put in dummy visits for ADTs in graph runtime codegen to placate pylint
      
      * Fix Relay type infer test module constructor
      
      * Mark override for TypeCallNode in type solver
      
      * Ensure free vars check treats patern vars as bound
      
      * Run interpreter in more ADT test cases
      
      * Refactor kind check to return the kind, like typechecking
      
      * Fix invalid typecall in test
      
      * Add kind check to type inference, do not use nulls in func_type_annotation()!
      
      * Redundant whitespace
      
      * Make TypeData a separate kind
      
      * Make ADT handles a separate kind too, document calling convention better
      
      * Remove nats and tree from prelude, move to test, document prelude
      
      * Restore and document nat and tree to prelude, add more tree tests
      
      * Add alpha equality tests for match cases, fix variable binding bug
      
      * Add more kind check tests for ADTs
      
      * Add more tests for finding free or bound vars in match exprs
      
      * Add unification tests for type call
      
      * Update main() for alpha equality tests
      
      * Add simple type inference test cases for match exprs and ADT constructors
      
      * Add more ADT interpreter tests
      
      * Allow incomplete types when typechecking match cases
      
      * Type inference for pattern vars should use the type annotation if it's there
      
      * Two more specific test cases for ADT matching
      
      * Add option ADT to prelude
      
      * Fix broken reference to kind enum
      
      * Fix rebase snags
      
      * Do not attach checked types to constructors
      
      * More docstrings for module fields
      
      * Use proper wrapper for indexing into module type data
      
      * checked_type for constructors is not populated
      
      * Expand type call docstring
      
      * Rename PatternConstructor con field
      
      * Use error reporter for pattern constructor case
      
      * Condense error reporting in kind check, use error reporter
      
      * Expand docstrings and rename ADT fields
      
      * Rename 'option' ADT to 'optional' for consistency with Python
      
      * Add various list iterators and utility functions to prelude
      
      * Add smoke tests for new iterators in prelude
      
      * Add concat to prelude
      
      * Add smoke test for concat
      
      * Correct docstrings in prelude
      
      * Ensure that type defs are written in module initialization
      
      * Various requested renamings
      
      * Correct rebase snags
      
      * Add kind check tests for ref types
      
      * Update the main() for kind checking tests
      Steven S. Lyubomirsky committed
  21. 24 Jan, 2019 1 commit
  22. 16 Jan, 2019 1 commit
  23. 15 Jan, 2019 2 commits
  24. 09 Jan, 2019 1 commit
  25. 09 Dec, 2018 1 commit
  26. 02 Nov, 2018 1 commit
  27. 27 Oct, 2018 1 commit
  28. 01 Oct, 2018 1 commit
  29. 21 Sep, 2018 1 commit
  30. 20 Sep, 2018 1 commit
  31. 21 Aug, 2018 1 commit
  32. 20 Aug, 2018 1 commit
  33. 12 Jul, 2018 1 commit
  34. 16 Jun, 2018 1 commit
  35. 08 Apr, 2018 1 commit
  36. 31 Mar, 2018 1 commit
  37. 19 Mar, 2018 1 commit
  38. 23 Feb, 2018 2 commits