diff --git a/python/paddle/base/framework.py b/python/paddle/base/framework.py index 3aea7e6a85a8a..ca9bcf5fd8db5 100644 --- a/python/paddle/base/framework.py +++ b/python/paddle/base/framework.py @@ -466,13 +466,13 @@ def require_version(min_version, max_version=None): Examples: .. code-block:: python - >>> import paddle.base as base + >>> import paddle >>> # any version >= 0.1.0 is acceptable. - >>> base.require_version('0.1.0') + >>> paddle.utils.require_version('0.1.0') >>> # if 0.1.0 <= version <= 10.0.0, it is acceptable. - >>> base.require_version(min_version='0.1.0', max_version='10.0.0') + >>> paddle.utils.require_version(min_version='0.1.0', max_version='10.0.0') """ if not isinstance(min_version, str): raise TypeError(