projects
/
platform
/
upstream
/
tvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de1bfa4
)
Deprecate NNVM warning msg (#4333)
author
Yizhi Liu
<liuyizhi@apache.org>
Fri, 15 Nov 2019 03:45:25 +0000
(19:45 -0800)
committer
Tianqi Chen
<tqchen@users.noreply.github.com>
Fri, 15 Nov 2019 03:45:25 +0000
(19:45 -0800)
nnvm/python/nnvm/__init__.py
patch
|
blob
|
history
diff --git
a/nnvm/python/nnvm/__init__.py
b/nnvm/python/nnvm/__init__.py
index
31b8858
..
aaaa8b1
100644
(file)
--- a/
nnvm/python/nnvm/__init__.py
+++ b/
nnvm/python/nnvm/__init__.py
@@
-2,6
+2,7
@@
# coding: utf-8
"""NNVM python API for ease of use and help new framework establish python API. """
from __future__ import absolute_import as _abs
+import warnings
from . import _base
from . import symbol as sym
@@
-10,3
+11,6
@@
from ._base import NNVMError
from . import frontend
__version__ = _base.__version__
+
+warnings.warn("NNVM is deprecated and will be removed in a future version. Use Relay instead.",
+ FutureWarning)