PaddlePaddle / PaddleScience

PaddleScience is SDK and library for developing AI-driven scientific computing applications based on PaddlePaddle.
http://paddlescience-docs.rtfd.io/
Apache License 2.0
291 stars 178 forks source link

[Fix] Fix code bugs and adapt to PIR mode by default #991

Closed HydrogenSulfate closed 2 months ago

HydrogenSulfate commented 2 months ago

PR types

Bug fixes

PR changes

Others

Describe

  1. 修正代码中的BUG
  2. .format改为f-string
  3. 根据https://github.com/PaddlePaddle/Paddle/pull/68278,使用paddle.framework.use_pir_api代替FLAGS_enable_pir_api判断是否在PIR模式。
paddle-bot[bot] commented 2 months ago

Thanks for your contribution!