计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
backend-and-configuration【效率与协作】Install and select DeepXDE tensor backends and configure dtype, autodiff, random seed, XLA, GPU, and parallel settings.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is about choosing or diagnosing a DeepXDE tensor backend, installing backend-specific dependencies, or configuring dde.config settings such as dtype, autodiff mode, random seed, XLA, and parallel scaling.
This construction verified DeepXDE with the PyTorch backend on CPU. TensorFlow, JAX, PaddlePaddle, GPU, Horovod, and MPI paths are supported by DeepXDE but were not runtime-verified here; treat them as optional/alternative paths until checked in the target environment.
DDE_BACKEND=pytorch python your_script.py
or, inside Python before import deepxde:
import os
os.environ.setdefault("DDE_BACKEND", "pytorch")
import deepxde as dde
python scripts/check_backend.py --backend pytorch
python scripts/check_backend.py --backend tensorflow --json
dde.config.set_default_float("float32")
dde.config.set_random_seed(1234)
dde.config.set_default_autodiff("reverse")
Model.compile, training loops, callbacks, checkpoints, metrics, and predictions: ../training-workflows/SKILL.mdDDE_BACKEND explicitly or set the saved DeepXDE config.DDE_BACKEND after import deepxde is too late for the current process.pytorch for CPU-safe examples in this generated skill unless the user explicitly requests another backend and the required package set is installed.