From 2573b3b8c97f177b2591cdfbe999094f4c56b943 Mon Sep 17 00:00:00 2001 From: Yizhi Liu Date: Thu, 14 Nov 2019 19:45:25 -0800 Subject: [PATCH] Deprecate NNVM warning msg (#4333) --- nnvm/python/nnvm/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nnvm/python/nnvm/__init__.py b/nnvm/python/nnvm/__init__.py index 31b8858..aaaa8b1 100644 --- 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) -- 2.7.4