We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fluid
OS: Windows 10 python=3.8 (also tried on 3.10) parl=2.2.1 paddlepaddle-gpu==2.6.0
PARL/parl/utils/utils.py
Line 76 in 3bb5fe3
def check_installed_framework_in_windows(): global _HAS_FLUID, _HAS_PADDLE, _HAS_TORCH # paddle & fluid try: _HAS_FLUID = False _HAS_PADDLE = False import paddle from paddle import fluid paddle_version = get_fluid_version() logger.info("paddlepaddle version: {}.".format(paddle.__version__)) if paddle_version < 200 and paddle_version != 0: assert paddle_version >= 185, "PARL requires paddle >= 1.8.5 and paddle < 2.0.0" _HAS_FLUID = True else: _HAS_PADDLE = True except ImportError as e: _HAS_FLUID = False _HAS_PADDLE = False ... ...
The logic above caused _HAS_PADDLE set to False even with the latest paddle installed. According to this post, quotes:
从飞桨框架 2.5 版本开始,我们已经废弃了 paddle.fluid namespace 下的 API,请使用其他的替代 API。
I changed the parl/utils/utils.py as temporary remedy.
parl/utils/utils.py
def check_installed_framework_in_windows(): global _HAS_FLUID, _HAS_PADDLE, _HAS_TORCH # paddle & fluid try: _HAS_FLUID = False _HAS_PADDLE = False import paddle from paddle import fluid paddle_version = get_fluid_version() logger.info("paddlepaddle version: {}.".format(paddle.__version__)) if paddle_version < 200 and paddle_version != 0: assert paddle_version >= 185, "PARL requires paddle >= 1.8.5 and paddle < 2.0.0" _HAS_FLUID = True else: _HAS_PADDLE = True except ImportError as e: _HAS_FLUID = False try: import paddle _HAS_PADDLE = True except ImportError: _HAS_PADDLE = False ... ...
The text was updated successfully, but these errors were encountered:
I just change code like this
# from paddle import fluid
Sorry, something went wrong.
No branches or pull requests
Environment
OS: Windows 10
python=3.8 (also tried on 3.10)
parl=2.2.1
paddlepaddle-gpu==2.6.0
Related Code
PARL/parl/utils/utils.py
Line 76 in 3bb5fe3
The logic above caused _HAS_PADDLE set to False even with the latest paddle installed. According to this post, quotes:
Remedy
I changed the
parl/utils/utils.py
as temporary remedy.The text was updated successfully, but these errors were encountered: