[Relay][RFC] Implement type checking for Any (#3221)
authorJared Roesch <roeschinc@gmail.com>
Wed, 10 Jul 2019 17:16:45 +0000 (10:16 -0700)
committerThierry Moreau <moreau@uw.edu>
Wed, 10 Jul 2019 17:16:45 +0000 (10:16 -0700)
commit3fb84e2b44e148db000b77a4549f92232812b029
treedde4fe0dfc851cdcc67da5148505b49dd47555ae
parentb10dda6945d97243e66439f048f5f64eef04a341
[Relay][RFC] Implement type checking for Any (#3221)

* Implement type checking for Any

Remove code generation related changes

Remove compile changes

Remove more

Remove unification hack

Add some code back that was needed, and clean up test

Refactor test cases

WIP

Implement TypeHint AST

Add test case which should fail

Remove unification changes, and fix bug with let rec

Restore unification for shapes

Improve error reporting while debugging

All examples type check

All examples type check

WIP

First version that works with hints, needs clean up

Remove dead code

Tweaks

Remove type hint

Remove unecessary type hint stuff

Remove more type hints

Clean up

Expose Any expression node

Address CR

Fix

Fix solver

Kill unecessary code

Fix

PyLint

Fix

Relocate loops

Fix license and test

Lint again

Lint again

Fix loops

Fix docstring

Fix template error

Fix compiler issue

Fix compile err

Remove more runtime changes

Restore buffer

Fix segfault

Fix

Fix arange

* Address feedback

* Fix typo

* Fix arange

* Fix op level3

* Fix issue with Python wrapper
35 files changed:
include/tvm/ir.h
include/tvm/relay/attrs/transform.h
include/tvm/relay/error.h
include/tvm/relay/expr.h
include/tvm/relay/op_attr_types.h
include/tvm/relay/type.h
include/tvm/runtime/ndarray.h
python/tvm/_ffi/base.py
python/tvm/api.py
python/tvm/relay/__init__.py
python/tvm/relay/expr.py
python/tvm/relay/frontend/mxnet.py
python/tvm/relay/frontend/tensorflow.py
python/tvm/relay/loops.py [new file with mode: 0644]
python/tvm/relay/op/transform.py
python/tvm/relay/scope_builder.py
python/tvm/relay/ty.py
src/codegen/llvm/codegen_llvm.cc
src/lang/buffer.cc
src/lang/ir.cc
src/lang/tensor.cc
src/relay/backend/build_module.cc
src/relay/backend/compile_engine.cc
src/relay/ir/error.cc
src/relay/ir/expr.cc
src/relay/ir/pretty_printer.cc
src/relay/ir/type.cc
src/relay/op/tensor/transform.cc
src/relay/op/type_relations.cc
src/relay/pass/type_infer.cc
src/relay/pass/type_solver.cc
src/relay/pass/type_solver.h
src/runtime/ndarray.cc
tests/python/relay/test_any.py [new file with mode: 0644]
tests/python/relay/test_op_level3.py