diff --git a/python/paddle/utils/deprecated.py b/python/paddle/utils/deprecated.py index ed0d84d729f0deb12d62095b3a36bac88c6c7be1..08fd7e33479b331454f63f05f6240dd221591ee9 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.'