Граф коммитов

67 Коммитов

Автор SHA1 Сообщение Дата
Ehsan M. Kermani 8d3b392da6 [RUST][FRONTEND] Fix resnet example (#3000)
Due to the previous changes the frontend resnet example failed to build.  So this patch 

1) fixes it 
2) adds ~~a local `run_tests.sh` to remedy non-existence of MXNet CI (used in python build example)~~ the example build to CI with random weights and a flag for pretrained resnet weights

Please review: @tqchen @nhynes @kazimuth
2019-04-14 19:11:18 -07:00
Bing Xu 8b71a28289 [Relay] C++ GraphRuntimeCodegen, Deprecate Python2 (#2986)
* [Relay] C++ GraphRuntimeCodegen

* [Test] Deprecate Python2

* [Python3] Add Py2 check

* Update _pyversion.py

* [Python3] Update test
2019-04-12 16:13:45 -07:00
Tianqi Chen cffb4fba03
[HEADER] Add Header to Comply with ASF Release Policy (#2982)
* [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
2019-04-07 21:14:02 -07:00
Nick Hynes 4968279f87 [Rust] Unify types between bindings and pure Rust impl (#2616) 2019-04-02 17:24:21 -07:00
Marcus Shawcroft a42ad8ed82 Add missing #!/bin/bash directive. (#2951) 2019-04-02 09:41:08 -07:00
MORITA Kazutaka 162eab44dd [DOCKER][FRONTEND] Run DarkNet tests (#2673)
* [DOCKER][FRONTEND] Run DarkNet tests

* update tests to pass CI
2019-04-01 09:00:23 -07:00
Marcus Shawcroft d63f6d36f7 [TESTS] Import script robustness (set -u) (#2896)
Adopt the "set -u" idiom from the docker scripts as a mechanism to
improve future robustness.
2019-03-26 11:17:11 -07:00
Marcus Shawcroft 23aa24cf17 [TESTS] Improve script robustness (#2893)
A number of test scripts use the '|| exit 1' idiom.  This has two
issues, first process exit codes are defined to be in the range 0-255.
Second, more importantly, the idiom is fragile because it requires
that every possible failure point be explicitly coded.  This patch
removes the idiom in favour of "set -e" as used in the docker scripts
as a more robust mechanism to ensure that script failures are always
caught and propagated by default.
2019-03-25 13:44:35 -07:00
Bing Xu f81e2873d1 [AlterLayout] NCHWc upsampling, fix depthwise conv (#2806)
* [AlterLayout] NCHW upsampling

* [Relay][Pass] Fix Depthwise AlterLayout
2019-03-19 20:51:23 -07:00
hlu1 0f6989f98a Fix typo (#2839) 2019-03-18 11:49:28 -07:00
Marcus Shawcroft 3e02c97140 Improve task_lint.sh robustness (#2711)
* [SCRIPT] Refactor grep for multiple patterns

Tidy up the use of grep.  Use -E rather than run multiple grep
instances.

* [SCRIPT] Refactor grep use in pipeline.

Prefer to use stdin redirection rather than create a pipeline.

* [SCRIPT] Refactor placement and cleanup of temporary files.

Place temporary files in the conventional /tmp location. Avoid
poisoning file name space by using $$. Ensure the temporary files get
cleaned up, even when the script fails / exits early.

* [SCRIPT] Improve robustness of task_lint.sh error handling.

Ensure script failures are caught and propagated.  Rather than trying
to explicitly catch and propagate failures with explicit "|| exit"
annotations, use the "set -e" idom from docker/install scripts and
have the shell catch and propagate errors in the general case and
special case the grep instances where non zero exit is permitted and
should be ignored.
2019-03-01 10:09:35 -08:00
Tianqi Chen 0813262f1c
Update task_python_vta.sh 2019-02-19 19:05:28 -08:00
Marcus Shawcroft 7e2a9fcfbc [TEST] Remove script that references previously removed content. (#2596) 2019-02-13 09:48:48 -08:00
Siva 2f859d712d [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.
2019-02-05 15:11:17 -08:00
Ehsan M. Kermani e2970b226e [RUST][FRONTEND] Add rust frontend v0.1 (#2292) 2019-02-02 19:56:11 -08:00
Tianqi Chen 18b2ebac9b
[CI] Update rust format version (#2550) 2019-02-02 12:13:59 -08:00
Hiroyuki Makino b3b3d28a18 [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)
2019-02-01 22:31:20 -08:00
Yizhi Liu 881a78b3d6 [Relay][Frontend] CoreML Support (#2476)
* [Relay][Frontend] Add CoreML Support

* pip install six in CI

* remove triggering nnvm coreml test

* set opt_level=2 for nnvm coreml test case
2019-01-29 16:19:36 -08:00
Wu Zhao 10df78a5ec [TFLite] Support TFLite FP32 Relay frontend. (#2365)
* Support TFLite FP32 Relay frontend.

* Fix lint issue

* Remove unnecessary variables and packages

* Add method doc string

* Fix capital letter of method doc string

* Add TFLite FP32 Relay frontend based on latest code

* Merge the latest code

* Solve cython issue with relay type inference

* Modify code based on suggestions
2019-01-23 20:29:07 +05:30
Haichen Shen a61d3b4160
[FRONTEND][TEST] Remove duplicated frontend tests (#2414)
* Remove duplicated frontend tests

* Add test for nnvm to relay

* Add test to script

* Remove dcgan in nnvm_to_relay test due to unsupported op in cuda

* Fix bug in converting conv2d from nnvm to relay

* Fix dropout
2019-01-11 22:38:55 -08:00
Joshua Z. Zhang 30a5a6007d [RELAY][FRONTEND]Onnx to relay frontend (#2302) 2019-01-11 14:36:52 -08:00
Yuwei Hu a7d39d7b02 [Relay][Frontend] Keras Support (#2336) 2019-01-05 10:15:30 -08:00
Tianqi Chen 3516cbe004
[TEST] Setup frontend stage (#2347) 2018-12-27 13:53:52 -08:00
Jared Roesch 10ea05e645 [RELAY][RUNTIME] Add Relay interpreter and compiler for TVM runtime system. (#1954) 2018-10-30 15:29:36 -07:00
Siva 26e3aa19c8 [DOCKER][GOLANG] fix golang version. (#2023) 2018-10-28 09:43:06 -07:00
Wei Chen 5e66870b31 [DOC]Clear javadoc directory everytime (#1917) 2018-10-17 08:49:41 -07:00
Wei Chen 5bb666f2b0 Add javadoc build into Jenkins workflow (#1909) 2018-10-16 18:48:28 -07:00
Nick Hynes 43525f6668 [Rust] Add rust runtime to CI (#1851) 2018-10-11 22:19:17 -07:00
Tianqi Chen 27b6812b06
[CI] always rebuild sphinx-gallery docs from scratch (#1742) 2018-09-19 20:43:26 -07:00
Tianqi Chen ae5a28dba4
[NODE] Node base system refactor (#1739) 2018-09-19 19:56:45 -07:00
Jared Roesch 51fe00fb90 [High level OPT][RFC] NNVMv2 IR - Relay (#1672) 2018-09-19 15:55:12 -07:00
Tianqi Chen 19cf5c66ad
[DLPACK] Enable cython support (#1589) 2018-08-11 15:31:15 -07:00
Tianqi Chen 764516a6b3
[TEST] force openblas threads to be 1 (#1580) 2018-08-09 14:21:05 -07:00
Lianmin Zheng 32076df815 [AUTOTVM] TOPI integration for ARM CPU (#1487) 2018-08-02 08:59:25 -07:00
Yizhi Liu 5bd4afeeb1 [tvm4j] add GraphRuntime (#1472) 2018-07-24 14:45:18 -07:00
Lianmin Zheng 6ea74d4119 [AUTOTVM] Core part of auto-tuning module (#1312) 2018-07-12 16:54:15 -07:00
tqchen e531d02288 [BUILD][DOCS] Migrate VTA CI, test, build, docs 2018-07-11 21:54:39 -07:00
Siva a81ebd9040 [NNVM][FRONTEND] Tensorflow frontend support (#1188) 2018-06-12 22:37:35 -07:00
Tianqi Chen 552fa71b74 [BUILD] Upgrade build system to default python3 (#1260) 2018-06-11 16:36:52 -07:00
Tianqi Chen 2d3031ee6b [BUILD] Switch to CMake only Infra (#1254) 2018-06-10 22:00:33 -07:00
tqchen 5195679c5c [DOCS] Improve docs naming, fix docs warnings 2018-05-29 08:47:00 -07:00
tqchen bb2b86201c [DOCS] documentation merge 2018-05-29 08:47:00 -07:00
Tianqi Chen d99bcaf156 [EXT] Allow easy extraction of extern module (#926) 2018-02-23 10:24:17 -08:00
Tianqi Chen 433756b9fd Revert "[RUNTIME] Refactor extension type handling, now it is header only (#924)" (#925)
This reverts commit 12d15704d7f5d30cff7540f1fd16be64c6baca68.
2018-02-22 20:18:08 -08:00
Tianqi Chen a6b4a219e2 [RUNTIME] Refactor extension type handling, now it is header only (#924)
* [RUNTIME] Refactor extension type handling, now it is header only
2018-02-22 18:26:32 -08:00
alex-weaver 50e9d327b8 Run C++ TOPI tests in Jenkins build (#870)
* Added +x permission to task_cpp_topi.sh. Added C++ topi tests to Jenkinsfile

* Fixed test_topi_math.py

* Minor style fix
2018-02-04 17:06:30 -08:00
alex-weaver f280f23a3d Porting schedules (except convolutions) to C++ (#763)
* Ported injective schedules to C++. Added some elementwise ops.

* Fix lint errors

* Added reduction ops and schedules

* Fix lint errors

* Fix lint errors

* Fix lint errors

* Added transform ops

* Fix lint errors

* Fix lint errors

* Added softmax, log_softmax, leaky_relu and flatten ops.
Fixed issue where TVM_DECLARE_INTRIN_UNARY used the PureExtern flag
instead of PureIntrinsic.
Added softmax CUDA schedule.

* Fix lint

* Fix lint

* Added binary_dense, batch_norm_inference, dense, dilate, scale_shift_*,
global_pool and pool ops.
Extended pad to allow specifying pad_value.
Fixed issue where pad would throw if padding was zero in all dimensions.

* Fix lint

* Fix lint

* Added CUDA schedules for dense, pool and global_pool

* Added extern schedules for generic and CUDA

* Fix lint

* Added x86 binary schedules

* Fix lint

* Added rocm dense schedule. Added rocBLAS and cuBLAS support to dense ops

* Added pow ops. Added x86 default and injective schedules

* Fix lint

* Fix lint

* Fix lint

* Fix lint

* Fix lint

* Fix indent

* Removed schedules directory

* Changed left_shift, right_shift to operators. Changed pad_value in pad() to remove pointer usage

* Fixed usage of pad in nn/pooling.h. Fixed declaration of operator>>

* Fixed comments for shift operators

* Added comments to utility functions

* Added TOPI C++ library, exporting broadcast_add op

* Fix lint

* Share libinfo.py with TVM

* Fix lint

* Add other broadcast ops

* Fix lint

* Fix imports in topi

* Fix lib names

* Fixed build issue where windows builds don't apply correct definitions

* Removed TVM_EXPORTS from topi library

* Attempted CI build fix

* Add topi lib to tvm_multilib

* Fix Jenkinsfile

* Added TOPI build target to Makefile

* Fix nn op namespaces.

* Fix lint

* Renamed TOPI lib to libtvm_topi

* Removed _ffi/base.py

* Remove _ffi from topi, now shared with tvm.

* Make libtvm_topi loading optional

* Fix compiler warnings

* Fix lint

* Fix lint

* Fix lint

* Fix build error by making new libs argument to Target optional

* Added C++ Target type interop. Added registration of remaining C++ ops and schedules. Added test of broadcast ops

* Fix lint

* Fix lint

* Fix compile error

* Fix compiler warnings

* Fix compiler warnings

* Fixed int vector interop. Fixed argmin incorrectly invoking argmax. Fixed corner case in default schedules of attempting to fuse 0 length axes. Added tests for reduce ops.

* Refactored reduce builders

* Fixed typos in topi.cc. Added basic test.

* Fixed padding size error. Added dense, dilate, pooling tests

* Fixed issue where clip would output a different dtype to the input. Added split_sections op to cover the other mode of the python split op. Added tests.

* Changed extension type numbers to avoid clash with NNVM

* Fix lint

* Fix compiler warnings

* Removed use of std::vector from the public TOPI API

* Fix lint

* Add TOPI C++ tests to CI

* Fixed detail namespacing. Improved comments.
2018-01-27 21:57:13 -08:00
Tianqi Chen 88c22c3601 Disable OpenGL test temporary (#801) 2018-01-21 15:17:26 -08:00
Zhixun Tan 589831df65 [WIP] WebGL Backend (#672)
Basic WebGL Backend
2018-01-20 13:51:34 -08:00
masahi 3b9f16523b [ROCM] MIOpen contrib for convolution kernels (#722)
* fist working miopen support

* do FindFwdAlgo during build time

* fix lint

* update doc string

* import topi after checking if rocm is enabled

* add miopen namespace

* fixed descriptor overwrite bug

* add use_miopen option

* fix lint

* better miopen option handling

* fix typo

* fix options handling
2017-12-24 23:23:55 +08:00