You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/user/installation.rst
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ DeepXDE supports TensorFlow 1.x (``tensorflow.compat.v1`` in TensorFlow 2.x), Te
58
58
59
59
* Use the ``DDE_BACKEND`` environment variable:
60
60
61
-
- You can use ``DDE_BACKEND=BACKEND python pde.py`` to specify the backend:
61
+
- You can use ``DDE_BACKEND=BACKEND python pde.py`` to specify the backend. Currently ``BACKEND`` can be chosen from "tensorflow.compat.v1" (TensorFlow 1.x backend), "tensorflow" (TensorFlow 2.x backend), "pytorch" (PyTorch), "jax" (JAX), and "paddle" (PaddlePaddle).
62
62
63
63
$ DDE_BACKEND=tensorflow.compat.v1 python pde.py
64
64
@@ -78,15 +78,15 @@ DeepXDE supports TensorFlow 1.x (``tensorflow.compat.v1`` in TensorFlow 2.x), Te
78
78
- You can also use ``python -m deepxde.backend.set_default_backend BACKEND`` to set the default backend
79
79
- In Windows, you can find ``config.json`` file under "C:/Users/Username/.deepxde" directory
80
80
81
-
Currently ``BACKEND`` can be chosen from "tensorflow.compat.v1" (TensorFlow 1.x backend), "tensorflow" (TensorFlow 2.x backend), "pytorch" (PyTorch), "jax" (JAX), and "paddle" (PaddlePaddle). The default backend is TensorFlow 1.x.
81
+
* If no backend is selected as above, DeepXDE will automatically find an available backend.
82
82
83
83
Which backend should I choose?
84
84
``````````````````````````````
85
85
86
-
Although TensorFlow 1.x is the default backend, it may not be your best choice. Here is a comparison between different backends:
86
+
Here is a comparison between different backends:
87
87
88
88
- Different backends support slightly different features, and switch to another backend if DeepXDE raised a backend-related error.
89
-
- Currently, the number of features supported is: TensorFlow 1.x > TensorFlow 2.x > PyTorch > JAX.
89
+
- Currently, the number of features supported is: PaddlePaddle ≈ TensorFlow 1.x > TensorFlow 2.x ≈ PyTorch > JAX.
90
90
- Some features can be implemented easily (basically translating from one framework to another), and we welcome your contributions.
91
91
- Different backends have different computational speed, and switch to another backend if the speed is an issue in your case.
92
92
- We find that there is no backend that is always faster than the others.
0 commit comments