Skip to content

Commit

Permalink
compatible with the latest paddle
Browse files Browse the repository at this point in the history
  • Loading branch information
Birdylx committed May 23, 2024
1 parent a779f51 commit be30a7e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion parl/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ def check(installed_framework):
fliud_installed = False
paddle_installed = False
import paddle
from paddle import fluid
try:
from paddle import fluid
except ImportError as e:
fluid_installed = False
paddle_version = get_fluid_version()
if paddle_version < 200 and paddle_version != 0:
assert paddle_version >= 185, "PARL requires paddle >= 1.8.5 for paddle < 2.0.0"
Expand Down

0 comments on commit be30a7e

Please sign in to comment.