numpy-interop
NumPy Interoperability encompasses the protocols that allow different numerical libraries (PyTorch, TensorFlow, SciPy) to exchange data without redundant copies. It focuses on modern standards like DL
npx skills add majiayu000/claude-skill-registry --skill numpy-interop-cuba6112-skillfactory-2 --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
--- name: numpy-interop description: Protocols for cross-library data exchange including DLPack, buffer interfaces, and __array_ufunc__ for overriding NumPy functions. Triggers: DLPack, interoperability, __array_interface__, __array_ufunc__, buffer protocol. --- ## Overview NumPy Interoperability encompasses the protocols that allow different numerical libraries (PyTorch, TensorFlow, SciPy) to exchange data without redundant copies. It focuses on modern standards like DLPack and the implementation of custom behavior for non-NumPy objects using the `__array_ufunc__` protocol. ## When to Use - Passing data from a GPU-based library (like PyTorch) back to the CPU for NumPy analysis. - Implementing custom array-like objects that should work seamlessly with `np.sin()` or `np.add()`. - Interfacing with low-level C/C++ extensions using memory pointers and typestrings. - Avoiding memory copies when moving large tensors between frameworks. ## Decision Tree 1. Exchanging data with a modern tensor library (PyTorch)? - Use `np.from_dlpack()`. 2. Creating a custom class that needs to handle NumPy operations? - Implement the `__array_ufunc__` method. 3. Accessing raw memory pointers for a C exten
- Overview
- When to Use
- Decision Tree
- Workflows
- Non-Obvious Insights
- Evidence
- Scripts
- Dependencies
- References
What does the numpy-interop skill do?
NumPy Interoperability encompasses the protocols that allow different numerical libraries (PyTorch, TensorFlow, SciPy) to exchange data without redundant copies. It focuses on modern standards like DL
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill numpy-interop-cuba6112-skillfactory-2 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
