Skip to content
Back to skills

Backend And Batch

ASecurity

"Use POT with NumPy, PyTorch, JAX, TensorFlow, CuPy arrays, backend

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

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-batch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Backend And Batch?

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

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

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-batch
description: "Use POT with NumPy, PyTorch, JAX, TensorFlow, CuPy arrays, backend
  detection and conversion, optional backend controls, and batched OT/GW
  solvers."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# POT Backend and Batch Operations

Use this sub-skill when the task involves POT array backends or many same-shaped OT problems: NumPy baseline arrays, optional PyTorch/JAX/TensorFlow/CuPy arrays, backend discovery and conversion, environment variables that disable optional backend imports, mixed-backend errors, TensorFlow NumPy behavior, `ot.batch` vectorization, or gradient-memory choices.

Read [references/backend-reference.md](references/backend-reference.md) when deciding how to call `get_backend`, `get_backend_list`, `to_numpy`, backend classes, optional backend extras, disable environment variables, TensorFlow setup, or dtype/device-preserving conversion.

Read [references/batch-solvers.md](references/batch-solvers.md) when building batched `dist_batch`, `solve_batch`, `solve_sample_batch`, or `solve_gromov_batch` workflows, checking verified signatures/defaults, validating plan shapes/marginals, or comparing a batched solve with a looped solve.

Read [references/troubleshooting.md](references/troubleshooting.md) when POT raises mixed-backend `ValueError`s, optional imports are missing, TensorFlow NumPy behavior is inactive, GPU or CuPy variants are confusing, PyTorch gradient memory is too high, or batch dimensions/weights/methods fail.

Run [scripts/backend_batch_smoke.py](scripts/backend_batch_smoke.py) after installing POT to print detected backend implementations and exercise deterministic NumPy batch-solver fixtures without plotting, downloads, native repo tests, source checkouts, or optional backend assumptions.

Route mathematical OT solver selection to the owning solver sub-skill: `core-solvers` for ordinary exact/Sinkhorn OT, `gromov` for GW/FGW modeling, `unbalanced-partial` for relaxed mass, `barycenters` for barycenter construction, and `sliced-gaussian-large-scale` for approximation families. This sub-skill owns backend mechanics and batch vectorization, not choosing the mathematical model.

Files in this skill

  • SKILL.md2.2 KB
  • references/backend-reference.md9.2 KB
  • references/batch-solvers.md8.8 KB
  • references/troubleshooting.md9.5 KB
  • scripts/backend_batch_smoke.py17.9 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.