WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

max-models/cunumpy

Repository files navigation

CuNumpy

Simple wrapper for numpy and cupy. Replace import numpy as np with import cunumpy as xp.

Install

Create and activate python environment

python -m venv env
source env/bin/activate
pip install --upgrade pip

Install the code and requirements with pip

pip install -e .

Example usage:

export ARRAY_BACKEND=cupy
import cunumpy as xp
arr = xp.array([1,2])

print(type(arr))
print(xp.__version__)

Build docs

make html
cd ../
open docs/_build/html/index.html

About

Simple wrapper for numpy and cupy. Replace `import numpy as np` with `import cunumpy as xp`.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published