Yizhi Liu [Thu, 28 Feb 2019 04:26:22 +0000 (20:26 -0800)]
[Lang] Layout in TVM node system (#2509)
* move layout.h & layout.cc from relay to tvm
* change ConvertLayout in relay to bijectiveLayout->Forward/backward
* add first test case
* add LayoutAxis
* add LayoutAxis struct and compiles
* simplify BijectiveLayout rule consturct
* polish func name for Layout, move impl to .cc, remove Layout::defined(), add defined() checker
* partially add layout py support
* add layout test cases
* add doc for tvm.layout & tvm.bijective_layout
* fix lint
* fix lint
* fix layout name generation bug
* fix layout typo
* address comments and add topi.layout_transform
* layout.h->data_layout.h, test_lang_layout.py->test_lang_data_layout.py
eqy [Thu, 28 Feb 2019 04:25:35 +0000 (20:25 -0800)]
[AUTOTVM] tweak `sample_int` implementation (#2677)
* check in
* lint
* cleanup
* Update util.py
lixiaoquan [Thu, 28 Feb 2019 02:01:06 +0000 (10:01 +0800)]
[RELAY] Fix get_int_tuple for shape like '(1001,)' (#2691)
tshape.strip('()[]').split(',') will make a list ['1001',''] but the empty one isn't needed.
Denis Khalikov [Wed, 27 Feb 2019 22:38:01 +0000 (01:38 +0300)]
[CODEGEN LLVM GPU] Initialize llvm before lookup for the target (#2683)
Salem Derisavi [Wed, 27 Feb 2019 22:01:54 +0000 (17:01 -0500)]
Handle Select in IntSetEvaluator (#2687)
Takeshi Watanabe [Wed, 27 Feb 2019 19:48:32 +0000 (04:48 +0900)]
[RUST] Fix typo (#2681)
Marcus Shawcroft [Wed, 27 Feb 2019 19:47:14 +0000 (19:47 +0000)]
Stop pylint complaining about unnecessary return statement. (#2684)
Recent pylint introduced support for the useless-return diagnostic.
This patch remove the useless returns.
lixiaoquan [Wed, 27 Feb 2019 19:46:05 +0000 (03:46 +0800)]
Support mean in NNVM to Relay converter. (#2680)
MORITA Kazutaka [Wed, 27 Feb 2019 18:24:23 +0000 (03:24 +0900)]
[DOC] CoreML frontend tutorial (#2667)
* [DOC] CoreML frontend tutorial
* Update tutorials/frontend/from_coreml.py
Co-Authored-By: kazum <morita.kazutaka@lab.ntt.co.jp>
* Update tutorials/frontend/from_coreml.py
Co-Authored-By: kazum <morita.kazutaka@lab.ntt.co.jp>
* Addressed comments and added the original author
Marcus Shawcroft [Wed, 27 Feb 2019 18:01:05 +0000 (18:01 +0000)]
[PYLINT] Disable consider-using-get (#2654)
Hao Jin [Wed, 27 Feb 2019 08:01:52 +0000 (00:01 -0800)]
add converter for MXNet slice in nnvm and relay (#2662)
Logan Weber [Wed, 27 Feb 2019 05:15:39 +0000 (21:15 -0800)]
[Relay] Port param dict save/load from NNVM (#2620)
雾雨魔理沙 [Wed, 27 Feb 2019 04:40:06 +0000 (20:40 -0800)]
[Relay] add more descriptive error for checked_type (#2652)
Steven S. Lyubomirsky [Wed, 27 Feb 2019 04:38:50 +0000 (20:38 -0800)]
[Relay] Ensure nested higher-order functions are treated correctly (#2676)
Siju [Wed, 27 Feb 2019 04:19:45 +0000 (09:49 +0530)]
yolo reorg op for relay (#1941)
Siju [Wed, 27 Feb 2019 04:11:25 +0000 (09:41 +0530)]
REGION op removed from topi and added in darkent frontend (#2275)
hlu1 [Wed, 27 Feb 2019 02:32:27 +0000 (18:32 -0800)]
[Graph Runtime] Run_individual for benchmarking individual layers (#2569)
MORINAGA [Wed, 27 Feb 2019 01:32:21 +0000 (10:32 +0900)]
[AUTOTVM][Bugfix] Fix history loader for heterogeneous execution
在原佐为 [Tue, 26 Feb 2019 03:17:24 +0000 (11:17 +0800)]
Add CONCATENATION to tflite frontend, support Inception V3 (#2643)
* Add CONCATENATION to tflite frontend
* fix typo
* Fix codestyle
* Fix code style
* simplify convert map
* Update
雾雨魔理沙 [Tue, 26 Feb 2019 02:40:46 +0000 (18:40 -0800)]
[Relay] fix error in ANF (too agressively inline atomic expression and create free variable). (#2665)
雾雨魔理沙 [Tue, 26 Feb 2019 02:38:56 +0000 (18:38 -0800)]
fix (#2674)
Jian Weng [Tue, 26 Feb 2019 02:18:41 +0000 (18:18 -0800)]
[Hybrid Script] Add `max_num_threads` (#2672)
* i think it works for now?
* fix lint
* fix 2/3 compat
* fix py2 again
* fine, i gave up
Tianqi Chen [Mon, 25 Feb 2019 17:30:54 +0000 (09:30 -0800)]
[BUILD] Simplify after bind device type (#2670)
雾雨魔理沙 [Mon, 25 Feb 2019 05:36:17 +0000 (21:36 -0800)]
[Relay] add more function to prelude (#2660)
Junru Shao [Sun, 24 Feb 2019 20:24:32 +0000 (14:24 -0600)]
Fix -Wreturn-std-move and -Wself-assign-overloaded (#2669)
Haichen Shen [Sat, 23 Feb 2019 06:49:15 +0000 (22:49 -0800)]
[Relay/TOPI][OP] Add arange op in Relay and TOPI (#2621)
* Add arange op
* Update docs
* Fix bug
* add sanity check in relay and mxnet frontend mapping
* lint
* nits
* pylint
* don't allow empty output from arange
* Remove empty test for arange
* Fix bug and update doc
Haichen Shen [Sat, 23 Feb 2019 02:59:57 +0000 (18:59 -0800)]
add committer (#2661)
雾雨魔理沙 [Fri, 22 Feb 2019 22:48:12 +0000 (14:48 -0800)]
[Relay] GNF (#2492)
Tianqi Chen [Fri, 22 Feb 2019 22:30:59 +0000 (14:30 -0800)]
Update community.rst
ziheng [Fri, 22 Feb 2019 18:18:56 +0000 (10:18 -0800)]
[RELAY/OP] Gradient of relay level1 ops (#2633)
Jian Weng [Fri, 22 Feb 2019 18:06:28 +0000 (10:06 -0800)]
fix lint (#2649)
雾雨魔理沙 [Fri, 22 Feb 2019 18:06:09 +0000 (10:06 -0800)]
[Relay] fix anf for reference and pattern matching (#2637)
Yida Wang [Fri, 22 Feb 2019 18:05:23 +0000 (10:05 -0800)]
[RELAY][PASS]use attribute registration style in the mac count pass (#2645)
Marcus Shawcroft [Fri, 22 Feb 2019 18:04:36 +0000 (18:04 +0000)]
Explicitly disable pylint warning subprocess-popen-preexec-fn (#2656)
Marcus Shawcroft [Fri, 22 Feb 2019 18:03:18 +0000 (18:03 +0000)]
Stop pylint complaining about useless import alias. (#2655)
Recent pylint warngs about import renames with no effect. Remove
them.
eqy [Fri, 22 Feb 2019 06:29:52 +0000 (22:29 -0800)]
[Quantization][RELAY] Add check against NCHWc ops in the quantization pass (#2646)
* check in
* fix typo
* fix typo
* change message
* change message
* typo
* lint
Hao Jin [Fri, 22 Feb 2019 06:14:08 +0000 (22:14 -0800)]
add MXNet converter for where operator for both NNVM and Relay (#2647)
Marcus Shawcroft [Thu, 21 Feb 2019 18:43:07 +0000 (18:43 +0000)]
Fix pylint 2.2.2 gripes. (#2642)
Junru Shao [Thu, 21 Feb 2019 16:57:13 +0000 (08:57 -0800)]
[RUNTIME][NDArray] Allowing External Libraries to Subclass NDArrays (#2613)
Jared Roesch [Wed, 20 Feb 2019 22:20:00 +0000 (14:20 -0800)]
Fix fusion bug when call symbol that is not an operator. (#2630)
Yuwei Hu [Wed, 20 Feb 2019 20:39:59 +0000 (15:39 -0500)]
[Tutorial][Frontend] move from_keras tutorial to frontend (#2479)
* [Tutorial][Frontend] move from_keras tutorial to frontend
* remove tutorial/nnvm/from_keras.py
Jared Roesch [Wed, 20 Feb 2019 16:57:56 +0000 (08:57 -0800)]
Add test case for expr_functor.py (#2632)
eqy [Wed, 20 Feb 2019 08:41:29 +0000 (00:41 -0800)]
check in (#2627)
Yida Wang [Wed, 20 Feb 2019 08:40:09 +0000 (00:40 -0800)]
[RELAY][PASS] add a relay pass to count #macs of a model (#2609)
* add a relay pass to count #macs of a model
* remove unnecessary includes
* fix end-of-file issues
* address review comments
* remove test resnet
* address more review comments
* use data layout string to locate the input channel
* fix bug in conv 2d output tensor checking
* C must exist
Bing Xu [Wed, 20 Feb 2019 08:26:13 +0000 (00:26 -0800)]
[autotvm] fix #2617 (#2619)
hlu1 [Wed, 20 Feb 2019 05:05:42 +0000 (21:05 -0800)]
[Bugfix] Missing #include <sstream> (#2629)
Thanks @hlu1 and @tqchen, this is now merged.
Tianqi Chen [Wed, 20 Feb 2019 03:05:28 +0000 (19:05 -0800)]
Update task_python_vta.sh
Zhi [Wed, 20 Feb 2019 02:34:14 +0000 (18:34 -0800)]
[Relay]fix heterogenous annotation bug (#2622)
Wuwei Lin [Wed, 20 Feb 2019 02:23:19 +0000 (10:23 +0800)]
[RELAY] Stop_fusion annotation (#2624)
Wuwei Lin [Wed, 20 Feb 2019 01:03:34 +0000 (09:03 +0800)]
[RELAY][OP] ROI Align (#2618)
David Hirvonen [Tue, 19 Feb 2019 19:45:10 +0000 (14:45 -0500)]
remove batch_norm_inference (#2626)
Haichen Shen [Tue, 19 Feb 2019 06:38:46 +0000 (22:38 -0800)]
[TVM][LANG] Add eager simplification for operations with FloatImm (#2615)
* Add eager simplication for FloatImm
* fix
* fix lint
* Fix gcc warning
* fix
* Add test case
Tianqi Chen [Mon, 18 Feb 2019 23:33:09 +0000 (18:33 -0500)]
[EXPR] Expression-template based pattern matching. (#2589)
Jared Roesch [Mon, 18 Feb 2019 22:18:57 +0000 (14:18 -0800)]
Fix issue mutating if expressions (#2601)
Steven S. Lyubomirsky [Mon, 18 Feb 2019 21:59:20 +0000 (13:59 -0800)]
[Relay][Docs] Documentation for Algebraic Data Types (#2575)
Przemyslaw Tredak [Mon, 18 Feb 2019 21:21:02 +0000 (13:21 -0800)]
Fix the FInplaceIdentity (#2572)
Leyuan Wang [Mon, 18 Feb 2019 09:45:33 +0000 (01:45 -0800)]
[Bugfix] Nms_ir data_race solved (#2600)
* nms data race solved
* tst_topi_vision reference results are gonna be updated in PR #2353
* proposal nms_ir updated
eqy [Sun, 17 Feb 2019 18:22:09 +0000 (10:22 -0800)]
[RELAY][TOPI] `alter_op_layout` for x86 (#2602)
* alter_op_layout for x86
* cleanup
* cleanup
* fix lint
* fix lint
* fix lint
* fix lint
* change support level
* change other support levels
eqy [Sun, 17 Feb 2019 00:13:33 +0000 (16:13 -0800)]
[RELAY][DOCS] Port from_mxnet tutorial to relay (#2608)
* check in
* update build and run
ziheng [Sat, 16 Feb 2019 11:44:01 +0000 (03:44 -0800)]
[Quantize] Skip for same input-output domain scale. (#2611)
Steven S. Lyubomirsky [Sat, 16 Feb 2019 06:37:49 +0000 (22:37 -0800)]
[Relay] Algebraic data types (#2442)
* 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
Yizhi Liu [Sat, 16 Feb 2019 05:33:18 +0000 (21:33 -0800)]
fix get layout in to_relay (#2610)
ziheng [Sat, 16 Feb 2019 05:05:57 +0000 (21:05 -0800)]
Version 0.5 (#2604)
* Version 0.5
* update version.py
* update news
* update news
* update news
雾雨魔理沙 [Fri, 15 Feb 2019 18:07:10 +0000 (10:07 -0800)]
[Relay] Reference (#2489)
* move
fix test
fix lint
fix test
add more code
fix lint
better type infer ability
* fix build
* address comment
eqy [Thu, 14 Feb 2019 19:31:59 +0000 (11:31 -0800)]
[DOCS] update titles to reflect tutorial content (nnvm vs. relay) (#2597)
* update titles to reflect tutorial content (nnvm vs. relay)
* move things around
* fix typo
Zhi [Thu, 14 Feb 2019 16:55:29 +0000 (08:55 -0800)]
[TVM][Bugfix] fix storage_rewrite bug when input is big (#2580)
* fix storage_rewrite bug when input is big
* cast when necessary
* simplification
* simplification
* int64->uint32
* revert uint32->int64
Wuwei Lin [Thu, 14 Feb 2019 10:50:59 +0000 (18:50 +0800)]
[TOPI][CUDA] Add faster-rcnn proposal op (#2420)
* [TOPI][CUDA] Add faster-rcnn proposal op
* Fix doc
* Add global barrier
* Use vthread in argsort
* Update sort and nms ir
* Fix lint
* Update sort ir in ssd nms
Tianqi Chen [Thu, 14 Feb 2019 07:40:21 +0000 (23:40 -0800)]
[RUNTIME] Enable NDArray type extension (#2598)
Jian Weng [Wed, 13 Feb 2019 23:46:34 +0000 (15:46 -0800)]
[Hybrid script] Backend support (#2477)
* 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
Marcus Shawcroft [Wed, 13 Feb 2019 17:48:48 +0000 (17:48 +0000)]
[TEST] Remove script that references previously removed content. (#2596)
eqy [Wed, 13 Feb 2019 17:40:29 +0000 (09:40 -0800)]
[AUTOTVM][RELAY][DOCS] relay ports of `tune_nnvm_*` autotvm tutorials (#2594)
Haichen Shen [Wed, 13 Feb 2019 06:54:12 +0000 (22:54 -0800)]
Fix typo (#2595)
thanks @icemelon9, this is merged
Jessica Davies [Tue, 12 Feb 2019 18:53:14 +0000 (13:53 -0500)]
Tighten buffer bound for TensorComputeOp by improving EvalSet on ranges (#2565)
Marina Kolpakova [Tue, 12 Feb 2019 15:49:50 +0000 (18:49 +0300)]
A couple of fixes for GEN (#2593)
MORITA Kazutaka [Tue, 12 Feb 2019 15:36:39 +0000 (00:36 +0900)]
[TUTORIAL] Fix downloaded file path (#2590)
Tianqi Chen [Sun, 10 Feb 2019 23:21:50 +0000 (15:21 -0800)]
[IR] Update HalideIR (#2582)
abergeron [Sat, 9 Feb 2019 17:55:56 +0000 (12:55 -0500)]
Conda packages with cuda support (#2577)
Yizhi Liu [Sat, 9 Feb 2019 17:52:39 +0000 (09:52 -0800)]
[Team] @merrymercy -> PMC (#2578)
Yong Wu [Sat, 24 Nov 2018 19:53:17 +0000 (19:53 +0000)]
Get tags of saved model automatically
Remove exception trail in tf parser error message
Fix lint
Fix comments
Zhi Chen [Tue, 20 Nov 2018 01:27:46 +0000 (17:27 -0800)]
Support TensorFlow saved model
TF parser: return the consistent error message to error handler
Yong Wu [Tue, 16 Oct 2018 02:30:24 +0000 (02:30 +0000)]
Add tf parser wrapper, infer shape automatically
Pedro Larroy [Fri, 8 Feb 2019 18:18:50 +0000 (19:18 +0100)]
Optimize move semantics of NodeEntry reducing copies of shared_ptr which causes atomic contention (#2576)
雾雨魔理沙 [Thu, 7 Feb 2019 17:50:52 +0000 (09:50 -0800)]
Update plan_memory.cc (#2574)
ziheng [Thu, 7 Feb 2019 01:08:06 +0000 (17:08 -0800)]
[BUGFIX] Fix for quantize. (#2573)
Sergei Grechanik [Wed, 6 Feb 2019 13:52:46 +0000 (16:52 +0300)]
[TVM][BUGFIX] Fix missing reduction init predicates (#2495)
* [TVM][BUGFIX] Fix reductions in split axes
* A test case for the problem
* Fix the fix: skip loops that are related to reduction AND are unrelated to axis
Siva [Wed, 6 Feb 2019 12:01:33 +0000 (17:31 +0530)]
[Golang] bugfix #2517 (#2558)
Bing Xu [Wed, 6 Feb 2019 03:44:56 +0000 (19:44 -0800)]
[Python dep] Add missing dep pkg for relay (#2568)
Siva [Tue, 5 Feb 2019 23:11:17 +0000 (04:41 +0530)]
[RELAY][FRONTEND] Tensorflow frontend. (#2216)
* [RELAY][FRONTEND] Tensorflow frontend support.
* * LSTM removed for a while.
* * basic ops are good.
* * nn wip
* * wip
* * python2.7 corrections.
* * NN ops are good.
* * e2e models working good
* * all good except LSTM
* * rebase, tutorials and CI trigger.
* * CI errors.
* * enable opt_level=3
* * Docstrings cleanup. testing.tf utils moved to relay from nnvm.
* * tutorials update.
* * LSTM work good now.
* * Rebase
* * CI error
* * enable PTB.
* * rebase.
* * tutorials
* Update python/tvm/relay/frontend/tensorflow.py
Co-Authored-By: srkreddy1238 <sivar.b@huawei.com>
* * review comments.
* CI fix.
* * review comments.
Haichen Shen [Mon, 4 Feb 2019 23:00:22 +0000 (15:00 -0800)]
[Relay][OP] Add reverse_reshape (#2503)
* Enable reverse in reshape
* Fix lint and typo
* Put reverse_reshape into a separate op
* Fix pylint
Tianqi Chen [Sun, 3 Feb 2019 22:02:04 +0000 (14:02 -0800)]
Misc refactor on graph runtime, layout node (#2557)
Alexey Romanov [Sun, 3 Feb 2019 21:48:46 +0000 (00:48 +0300)]
Remove duplicate as Checks and CHECK value (#2531)
Tianqi Chen [Sun, 3 Feb 2019 18:37:36 +0000 (10:37 -0800)]
[VERSION] Move version script to the project root (#2556)
Zhi [Sun, 3 Feb 2019 17:46:00 +0000 (09:46 -0800)]
print ast w/o metadata (#2533)
Tianqi Chen [Sun, 3 Feb 2019 05:01:14 +0000 (21:01 -0800)]
[RELAY] TextPrinter: Use Map Format (#2553)
Ehsan M. Kermani [Sun, 3 Feb 2019 03:56:11 +0000 (19:56 -0800)]
[RUST][FRONTEND] Add rust frontend v0.1 (#2292)
Tianqi Chen [Sat, 2 Feb 2019 20:13:59 +0000 (12:13 -0800)]
[CI] Update rust format version (#2550)
Hiroyuki Makino [Sat, 2 Feb 2019 06:31:20 +0000 (15:31 +0900)]
[Relay][Frontend] Caffe2 Support (#2507)
* [Relay][Frontend] Add Caffe2 Support
* [Relay][Frontend] Add Caffe2 Support (fix unsed import)
* [Relay][Frontend] Add Caffe2 Support (fix caffe2 model import)
* [Relay][Frontend] Add Caffe2 Support (fix model install and reflect code reviews)
* [Relay][Frontend] Add Caffe2 Support (fix caffe2 model import)
* [Relay][Frontend] Add Caffe2 Support (fix caffe2 model import)
* [Relay][Frontend] Add Caffe2 Support (fix caffe2 model import)
* [Relay][Frontend] Add Caffe2 Support (fix caffe2 frontend import)
* [Relay][Frontend] Add Caffe2 Support (rename function name in test_forward)
* [Relay][Frontend] Add Caffe2 Support (fix caffe2 model import)
* [Relay][Frontend] Add Caffe2 Support (fix caffe2 model import)
* [Doc] Caffe2 frontend tutorial
* [Doc] Caffe2 frontend tutorial
* [Doc] Caffe2 frontend tutorial
* [Relay][Frontend] Add Caffe2 Support (remove unsed file)
Tianqi Chen [Sat, 2 Feb 2019 06:28:39 +0000 (22:28 -0800)]
[CI] Enable ANTLR in CPU env (#2548)
ziheng [Sat, 2 Feb 2019 05:58:47 +0000 (21:58 -0800)]
[COMMUNITY] @FrozenGene -> Reviewer (#2544)
* [COMMUNITY] @FrozenGene -> Reviewer
* Fix
Yong Wu [Fri, 1 Feb 2019 23:50:39 +0000 (15:50 -0800)]
[DOCS][RELAY] Sync up ops with code base (#2532)