From 07973c577ed342dd19b5e8d310b3a2d6f6169e19 Mon Sep 17 00:00:00 2001 From: Leo Chen Date: Thu, 27 Aug 2020 12:37:59 +0800 Subject: [PATCH] disable deprecated (#26684) --- python/paddle/utils/deprecated.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/paddle/utils/deprecated.py b/python/paddle/utils/deprecated.py index ed0d84d729f..08fd7e33479 100644 --- a/python/paddle/utils/deprecated.py +++ b/python/paddle/utils/deprecated.py @@ -44,6 +44,8 @@ def deprecated(update_to="", since="", reason=""): """ def decorator(func): + # TODO(zhiqiu): We temporally disable the warnings for 2.0-bata, and it should be re-enabled in the future. + return func """construct warning message, and return a decorated function or class.""" assert isinstance(update_to, str), 'type of "update_to" must be str.' assert isinstance(since, str), 'type of "since" must be str.' -- GitLab