1. 03 Apr, 2020 1 commit
    • [RELAY] Non-recursive Graph Vistor and Rewriter (#4886) · 7de8a539
      * First pass a defining a non-recursive Graph Vistor and Rewriter
      
      autoformat
      
      remove a currently empty test until testing is solidfied
      
      * Make CalcDep from Dead Code Elimination non-recursive
      
      * Partially working, not passing all tests yet
      
      passes tests when disabling GetExprRefCount, I think I have a bug in visit counting
      
      fix GetExprRefCount
      
      Fix a subtle bug with nested recursive/non-recursive scopes
      
      * Refactor
      
      * improve comments
      
      * respond to review comments on comments
      
      * Fix a problem with default recursion for dataflow nodes
      
      mark DataflowVisitor methods as override
      
      * implement ScopeMutator
      
      * convert forward_rewrite to ScopeMutator, remove DataflowMutator
      
      * rewrite ExprRewriter and convert fast_math to use it
      
      * switch BiasAddSimplifier to ExprRewriter
      
      fix a clang warning
      
      fix cpp lint
      
      fix doc param error
      
      * respond to review comments
      
      * fix a typo in the iterative looping
      
      * add a regression test for GetExprRefCount issue
      
      * Normalize naming
      
      * fix lint
      
      * First pass a defining a non-recursive Graph Vistor and Rewriter
      
      autoformat
      
      remove a currently empty test until testing is solidfied
      
      * Make CalcDep from Dead Code Elimination non-recursive
      
      * Partially working, not passing all tests yet
      
      passes tests when disabling GetExprRefCount, I think I have a bug in visit counting
      
      fix GetExprRefCount
      
      Fix a subtle bug with nested recursive/non-recursive scopes
      
      * Refactor
      
      * improve comments
      
      * respond to review comments on comments
      
      * Fix a problem with default recursion for dataflow nodes
      
      mark DataflowVisitor methods as override
      
      * implement ScopeMutator
      
      * convert forward_rewrite to ScopeMutator, remove DataflowMutator
      
      * rewrite ExprRewriter and convert fast_math to use it
      
      * switch BiasAddSimplifier to ExprRewriter
      
      fix a clang warning
      
      fix cpp lint
      
      fix doc param error
      
      * respond to review comments
      
      * fix a typo in the iterative looping
      
      * add a regression test for GetExprRefCount issue
      
      * Normalize naming
      
      * fix lint
      
      * respond to review comments
      Matthew Brookhart committed
  2. 12 Mar, 2020 2 commits
    • [REFACTOR] Streamline Function Attr interface. (#5045) · ec86d7f1
      * [REFACTOR] Streamline Function Attr interface.
      
      There has been quite a few recent changes that depends heavily on
      the function attr interface. This PR streamlines that interface by introducing
      two APIs that covers most of the usages.
      
      - GetAttr which gets a typed object for a given key
        - HasNonzeroAttr is a quick helper that calls GetAttr to quickly check an attribute
      - WithAttr that creates a new function object with the given attr
        - The API comes with copy on write optimization to avoid multiple copies
        - We deliberately pick the prefix With(instead of Set) to indicate this
          function does not mutate the original input.
      
      On the python side:
      - We allow read access via func.attrs (which is a DictAttr)
      - func.with_attrs to create a new instance with updated attrs.
      
      We also get rid of the small wrapper functions and make sure the API centered around
      the GetAttr and HasNonzeroAttr interface.
      
      This PR also changes the function construction to follow the new convention.
      
      * Address review comments
      
      * Address review comments
      
      * Fix doxygen path
      Tianqi Chen committed
    • [refactor][relay pass] Separate analysis and transform passes (#5035) · 14ba49c6
      * [refactor][relay pass] Separate analysis and transform passes into different subfolders
      
      * remove pass folder
      Zhi committed
  3. 31 Dec, 2019 1 commit
    • [REFACTOR][OBJECT] Consoldiate NodePtr/Ref/Hash/Equal to Object (#4603) · a8c36921
      * [REFACTOR][OBJECT] Consoldiate NodePtr/Ref/Hash/Equal and macros to Object.
      
      Historically, we have classes like NodePtr/Ref/HashEqual.
      After unified object protocol, these names are just alias of the object counterpart.
      Moreover, there are helper macros defined over the places for defining these object.
      
      This PR consoldiate the terminologies into the corresponding ones
      in the Object system so we have a clean and consistent API moving forward.
      
      * Update include/tvm/attrs.h
      
      Co-Authored-By: Wei Chen <ipondering.weic@gmail.com>
      
      * fix compilation
      
      Co-authored-by: Wei Chen <ipondering.weic@gmail.com>
      Tianqi Chen committed
  4. 24 Nov, 2019 1 commit
  5. 09 Jul, 2019 1 commit
    • [Relay][VM]Compiling pattern matching (#3470) · 93d1c06d
      * [Relay][VM]Compiling pattern matching
      
      * Fix lint
      
      * Remove debug code
      
      * Move TreeNode definition
      
      * merge ifi and selecti, todo: remove them
      
      * fix lint
      
      * remove ifi and selecti
      
      * rename GetTagi to GetTag
      
      * fix dltype
      
      * fix more dltype
      
      * Generalize If and select, and rename to Ifi and Selecti
      
      * Fix lint
      
      * Rename Ifi to If
      
      * Change register default to match value
      
      * Remove bad specialization for Move
      
      * Stop use Select
      
      * Remove Select
      
      * TreeNode refactor
      
      * Change entry_func name
      
      * Remove Cmp due to rebase issue
      Wei Chen committed
  6. 28 Jun, 2019 1 commit
  7. 09 Apr, 2019 1 commit
    • add document (#2714) · bb87f044
      lint
      
      lint
      
      save
      
      save
      
      add more case
      
      save
      
      error
      
      lint
      
      lint
      
      commit
      
      do
      
      lint
      
      save
      
      fix lint
      
      wrap it back as func
      
      lint
      
      save
      
      remove dead comment
      
      fix style
      
      fix lint
      
      Update src/relay/pass/partial_eval.cc
      
      Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
      
      Update src/relay/pass/partial_eval.cc
      
      Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
      
      Update src/relay/pass/partial_eval.cc
      
      Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
      
      Update src/relay/pass/partial_eval.cc
      
      Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
      
      Update src/relay/pass/partial_eval.cc
      
      Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
      
      Update src/relay/pass/partial_eval.cc
      
      Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
      
      address review feedback
      
      pe now handle freevar. as a result preserving function is now trivial.
      
      test
      
      add basic test, implement pretty printing for generic function
      
      test
      
      lint
      
      fix segfault
      
      save
      
      save
      
      do
      
      test
      
      fix another error
      
      address comment
      
      commit
      
      save
      
      address review feedback
      
      add test for invalidate, fix error in lookup
      
      rename cont to boduy
      
      fix error and add regression test
      
      fix error, add test case
      
      Update src/relay/pass/partial_eval.cc
      
      Co-Authored-By: MarisaKirisame <lolisa@marisa.moe>
      
      fix lint
      
      remove extra line
      
      save
      
      save
      雾雨魔理沙 committed
  8. 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
  9. 12 Mar, 2019 1 commit
  10. 18 Dec, 2018 1 commit
  11. 14 Nov, 2018 1 commit
  12. 13 Nov, 2018 1 commit