File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,12 @@ install:
3030 - pip install tensorflow tensorflow-probability
3131 - conda install pytorch cpuonly -c pytorch
3232 - pip install jax flax optax
33+ - pip install paddlepaddle
3334
3435script :
3536 # Your test script goes here
3637 - DDEBACKEND=tensorflow.compat.v1 python -c "import deepxde"
3738 - DDEBACKEND=tensorflow python -c "import deepxde"
3839 - DDEBACKEND=pytorch python -c "import deepxde"
3940 - DDEBACKEND=jax python -c "import deepxde"
41+ - DDEBACKEND=paddle python -c "import deepxde"
Original file line number Diff line number Diff line change 11"""paddle backend implementation"""
2+ from distutils .version import LooseVersion
3+
24import paddle
35
46
7+ if LooseVersion (paddle .__version__ ) < LooseVersion ("2.3.0" ):
8+ raise RuntimeError ("DeepXDE requires PaddlePaddle>=2.3.0" )
9+
510if paddle .device .is_compiled_with_cuda ():
611 paddle .device .set_device ("gpu" )
712
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ tensorflow-probability>=0.10.0
1212# PyTorch
1313torch >= 1.9.0
1414# PaddlePaddle
15- paddlepaddle
15+ paddlepaddle >= 2.3.0
1616# JAX
1717jax
1818flax
You can’t perform that action at this time.
0 commit comments