Skip to content

Commit 7675f4d

Browse files
committed
Require paddlepaddle>=2.3.0
1 parent 0ba4daf commit 7675f4d

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

3435
script:
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"

deepxde/backend/paddle/tensor.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
"""paddle backend implementation"""
2+
from distutils.version import LooseVersion
3+
24
import paddle
35

46

7+
if LooseVersion(paddle.__version__) < LooseVersion("2.3.0"):
8+
raise RuntimeError("DeepXDE requires PaddlePaddle>=2.3.0")
9+
510
if paddle.device.is_compiled_with_cuda():
611
paddle.device.set_device("gpu")
712

docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ tensorflow-probability>=0.10.0
1212
# PyTorch
1313
torch>=1.9.0
1414
# PaddlePaddle
15-
paddlepaddle
15+
paddlepaddle>=2.3.0
1616
# JAX
1717
jax
1818
flax

0 commit comments

Comments
 (0)