Skip to content
Back to skills

Backend And Configuration

ASecurity

"Install and select DeepXDE tensor backends and configure dtype,

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
datapythonbashapibackend

Works with

  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill backend-and-configuration --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Backend And Configuration?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Backend And Configuration
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-backend-and-configuration-arex-skill/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-backend-and-configuration-arex-skill)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: backend-and-configuration
description: "Install and select DeepXDE tensor backends and configure dtype,
  autodiff, random seed, XLA, GPU, and parallel settings."
disable-model-invocation: true
metadata:
  disco-role: operating
license: LGPL 2.1
---

# DeepXDE backend and configuration

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.

## Fast path

1. Select the backend **before importing DeepXDE**:
   ```bash
   DDE_BACKEND=pytorch python your_script.py
   ```
   or, inside Python before `import deepxde`:
   ```python
   import os
   os.environ.setdefault("DDE_BACKEND", "pytorch")
   import deepxde as dde
   ```
2. Run the diagnostic helper when imports or devices are uncertain:
   ```bash
   python scripts/check_backend.py --backend pytorch
   python scripts/check_backend.py --backend tensorflow --json
   ```
3. Apply configuration immediately after importing DeepXDE and before constructing data, networks, or models:
   ```python
   dde.config.set_default_float("float32")
   dde.config.set_random_seed(1234)
   dde.config.set_default_autodiff("reverse")
   ```

## Runtime references

- Backend dependencies and selection order: [references/backend-selection.md](references/backend-selection.md)
- Configuration API behavior: [references/configuration.md](references/configuration.md)
- Failure triage: [references/troubleshooting.md](references/troubleshooting.md)
- Safe diagnostic script: [scripts/check_backend.py](scripts/check_backend.py)

## Route out of this sub-skill

- PDE/ODE/IDE/FPDE geometry, boundary conditions, residuals, and gradients: [../pinn-problem-setup/SKILL.md](../pinn-problem-setup/SKILL.md)
- `Model.compile`, training loops, callbacks, checkpoints, metrics, and predictions: [../training-workflows/SKILL.md](../training-workflows/SKILL.md)
- DeepONet, MIONet, operator datasets, PI-DeepONet, or ZCS operator workflows: [../operator-learning/SKILL.md](../operator-learning/SKILL.md)

## Operating rules

- Do not rely on backend auto-detection in reproducible scripts. Set `DDE_BACKEND` explicitly or set the saved DeepXDE config.
- Backend selection is resolved during import. Changing `DDE_BACKEND` after `import deepxde` is too late for the current process.
- Prefer `pytorch` for CPU-safe examples in this generated skill unless the user explicitly requests another backend and the required package set is installed.
- Never claim GPU, Horovod, TensorFlow, JAX, or PaddlePaddle verification from this skill alone. Use the diagnostic script and environment-specific tests first.

Files in this skill

  • SKILL.md2.9 KB
  • references/backend-selection.md4.1 KB
  • references/configuration.md6.8 KB
  • references/troubleshooting.md6 KB
  • scripts/check_backend.py14.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.