Commit Graph

26 Commits

Author SHA1 Message Date
abergeron cfbecc5a74 Also package core.rly (#4679) 2020-01-10 14:04:15 -08:00
Leandro Nunes d93e1dca81 Pin python pillow to "<7" due to torchvision 1.2.0 dependency issue (#4632)
* As a result of backwards incompatible changes released in pillow 7.0,
   torchvision crashes if you just "pip install pillow", as we do in
   a few places.

 * This patch sets pillow<7 to be installed in Dockerfiles and support
   material as tutorials and documentation.
2020-01-06 08:31:07 -08:00
Tianqi Chen 55bd786fe2 [REFACTOR][RUNTIME] Update NDArray use the Unified Object System (#4581)
* [REFACTOR][RUNTIME] Move NDArray to Object System.

Previously NDArray has its own object reference counting mechanism.
This PR migrates NDArray to the unified object protocol.

The calling convention of NDArray remained intact.
That means NDArray still has its own type_code and
its handle is still DLTensor compatible.

In order to do so, this PR added a few minimum runtime type
detection in TVMArgValue and RetValue only when the corresponding
type is a base type(ObjectRef) that could also refer to NDArray.

This means that even if we return a base reference object ObjectRef
which refers to the NDArray. The type_code will still be translated
correctly as kNDArrayContainer.
If we assign a non-base type(say Expr) that we know is not compatible
with NDArray during compile time, no runtime type detection will be performed.

This PR also adopts the object protocol for NDArray sub-classing and
removed the legacy NDArray subclass protocol.
Examples in apps/extension are now updated to reflect that.

Making NDArray as an Object brings all the benefits of the object system.
For example, we can now use the Array container to store NDArrays.

* Address review comments
2019-12-29 22:16:27 -08:00
lhutton1 603280bf6f PIL is depreciated and should be replaced with pillow (a fork of PIL) (#4533)
Change-Id: If2075df5475505f2da87dae7145af5a7ab83d8a4
2019-12-17 09:55:32 -08:00
Neo Chien 2ed39e9183 [SETUP] Add optional dependencies to extras_require (#4428) 2019-11-26 09:48:24 -08:00
Tianqi Chen 86b844b995 [DOCS] Update link loc (#4257) 2019-11-05 16:03:04 -08:00
Wei Chen 31b47c84b3 [Relay] Install Relay Prelude program in package install (#4227) 2019-10-30 15:54:56 -07:00
Bing Xu aa7bf34cda [dep] psutil (#3780) 2019-08-21 05:45:18 +08:00
Jared Roesch dd55682dcd [Relay][Runtime] Add support for virtual machine Objects (#3120) 2019-05-02 09:54:52 -04: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
Bing Xu 7c12495097 [Python dep] Add missing dep pkg for relay (#2568) 2019-02-05 21:44:56 -06:00
Lianmin Zheng bde53033bd [RUNTIME] Add fp16/fp32 conversion functions (#1766) 2018-09-24 20:13:34 -07:00
Tatsuya Nishiyama 3d0d96c81e Fix runtime error on osx (#1449) 2018-07-18 20:59:37 -07:00
abergeron 2a1c2ba9bc Fix conda package builds (#1445) 2018-07-17 13:45:08 -07:00
Clouds d1cdb623c3 Update setup.py (#803)
fix errors when running `python3 setup.py sdist bdist_wheel`
2018-01-22 10:00:08 -08:00
Tianqi Chen 9c0da90fb1 [PASS/SETUP] Fix minior issues (#663)
* [PASS/SETUP] Fix minior issues

* fix lint
2017-11-21 11:11:41 -08:00
Tianqi Chen 4865f95830 [BUILD] Windows support of DLL exports (#522) 2017-10-08 15:28:36 -07:00
Tianqi Chen c6c287bfa3 [SETUP] Always use relpath for setup (#421)
* [SETUP] Always use relpath for setup

* [CMAKE] Fix cmake llvm build
2017-09-04 17:53:18 -07:00
Tianqi Chen 26b433b5de [TEST] Jenkinsfile (#389)
* [TEST] Jenkinsfile

* Fix wheel setup
2017-08-26 12:08:59 -07:00
Tianqi Chen 7f1b0f5bae [SETUP] Fix python setup (#380) 2017-08-24 09:00:03 -07:00
ziheng c6ebb5a1ef [Python] Dist wheel tools (#348) 2017-08-19 20:43:11 -07:00
ziheng 5cdc860492 [TAG] Fix signature of decorated function (#228)
* [TAG] Fix signature of decorated function

* Add dep
2017-07-07 16:02:35 -07:00
Tianqi Chen 8a5b6c21ad [DOC] Doc redirection (#119)
* [DOC] Doc redirection

* fix setup url
2017-05-04 16:13:08 -07:00
ziheng d45b6d4b84 [DOC] Add intro to 'comm_reducer' in tutorial; fix doc (#108)
* [DOC] Add intro to 'comm_reducer' in tutorial; fix doc

* Fix

* Fix
2017-04-29 14:39:24 -07:00
Tianqi Chen 535a97c968 [PYTHON/FFI] Enable Cython FFI (#106)
* [PYTHON/FFI] Enable Cython FFI

* fix cython
2017-04-27 15:20:29 -07:00
ziheng b5702eca64 [DOC] Add setup.py, fix comments (#89)
* Add setup.py, fix comments

* Update installation document
2017-04-15 14:45:17 -07:00