Skip to content

Commit

Permalink
fix_sample_code_paddle.utils.require_version (#57989)
Browse files Browse the repository at this point in the history
  • Loading branch information
ooooo-create authored Oct 11, 2023
1 parent 332fa7e commit 39814af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/paddle/base/framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 39814af

Please sign in to comment.