Skip to content

Commit c64ce6a

Browse files
update euler_beam static code
1 parent 162922d commit c64ce6a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/euler_beam/euler_beam.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# limitations under the License.
1414

1515
import numpy as np
16+
from paddle import fluid
1617

1718
import ppsci
1819
from ppsci.autodiff import hessian
@@ -21,6 +22,8 @@
2122
from ppsci.utils import logger
2223

2324
if __name__ == "__main__":
25+
fluid.core._set_prim_all_enabled(True)
26+
2427
args = config.parse_args()
2528
# set random seed for reproducibility
2629
ppsci.utils.misc.set_random_seed(42)

0 commit comments

Comments
 (0)