Common backend for JAX or numpy.
Project description
Jumpy
Jumpy is a common backend for JAX or numpy:
- A jumpy function returns a JAX outputs if given a JAX inputs
- A jumpy function returns a JAX outputs if jitted
- Otherwise a jumpy function returns numpy outputs
Jumpy lets you write framework agnostic code that is easy to debug by running as raw numpy, but is just as performant as JAX when jitted.
Installing Jumpy
To install Jumpy from pypi:
python3 -m venv env
source env/bin/activate
pip install --upgrade pip
pip install brax-jumpy
Alternatively, to install Jumpy from source, clone this repo, cd
to it, and then:
python3 -m venv env
source env/bin/activate
pip install --upgrade pip
pip install -e .
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jax_jumpy-0.0.2.tar.gz
(9.8 kB
view hashes)
Built Distribution
Close
Hashes for jax_jumpy-0.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa6459e9f8939fd17b03977a96917c24a56b1930d14fea6741bf93af9aa3ec0d |
|
MD5 | 1bafdd66e5e431dd868c60185ce2de71 |
|
BLAKE2b-256 | 61793239f7232466c8978c96cc1054da4b4c2dc3cb490fe8d52856ad2fe4b64a |