Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangbo9674 committed Apr 29, 2024
1 parent 24979ea commit 38d9652
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/paddle/pir_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def __enter__(self):
paddle.enable_static()
if not self.old_flag:
paddle.framework.set_flags({"FLAGS_enable_pir_api": True})
paddle.framework.set_flags({"FLAGS_enable_pir_in_executor": True})
paddle.base.framework.global_var._use_pir_api_ = True
bind_datatype()
self._switch_to_pir()
Expand Down

0 comments on commit 38d9652

Please sign in to comment.