Observed since 20 Oct, 17:34 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
abracudabra
Convert Tensors, Arrays and DataFrames Between CPU and CUDA

📖 Documentation: https://abracudabra.docs.cern.ch/master
Abracudabra simplifies moving data between CPU and CUDA devices, supporting seamless conversions for Torch tensors, NumPy/CuPy arrays, and Pandas/cuDF Series and DataFrames.
pip install abracudabra
Here's a quick example demonstrating how to convert a NumPy array to a CUDA-compatible (CuPy) array:
from abracudabra import to_array
import torch
tensor = torch.rand(2, 3, device="cuda:0")
array = to_array(tensor)
print(type(array)) # <class 'cupy.ndarray'>
Abracudabra also supports conversions for dataframes, series, tensors, and includes utilities for querying and managing device contexts. For comprehensive documentation and additional examples, please visit the official usage guide.
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
numpyEnvironment{
"extras": "",
"marker": "extra == \"cpu\"",
"requires_python": ">=3.10",
"evaluation": "NOT_EVALUATED"
} | numpy>=2.0.2; extra == "cpu" | runtime |
pandasEnvironment{
"extras": "",
"marker": "extra == \"cpu\"",
"requires_python": ">=3.10",
"evaluation": "NOT_EVALUATED"
} | pandas>=2.2.3; extra == "cpu" | runtime |
torchEnvironment{
"extras": "",
"marker": "extra == \"cpu\"",
"requires_python": ">=3.10",
"evaluation": "NOT_EVALUATED"
} | torch<2.6.0; extra == "cpu" | runtime |
cudf-cu12Environment{
"extras": "",
"marker": "extra == \"cuda124\"",
"requires_python": ">=3.10",
"evaluation": "NOT_EVALUATED"
} | cudf-cu12==25.2.*; extra == "cuda124" | runtime |
cupy-cuda12xEnvironment{
"extras": "",
"marker": "extra == \"cuda124\"",
"requires_python": ">=3.10",
"evaluation": "NOT_EVALUATED"
} | cupy-cuda12x>=13.4.0; extra == "cuda124" | runtime |
torchEnvironment{
"extras": "",
"marker": "extra == \"cuda124\"",
"requires_python": ">=3.10",
"evaluation": "NOT_EVALUATED"
} | torch<2.6.0; extra == "cuda124" | runtime |
bdist_wheel · 21.93 KB · Python py3
Observed since 20 Oct, 17:34 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:0310cd02fafd035f821d769dee8aa96f2f40087ea58a7e9cd08e179330df9b89