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
brax_jumpy-0.1.0.tar.gz
(9.8 kB
view details)
Built Distribution
File details
Details for the file brax_jumpy-0.1.0.tar.gz
.
File metadata
- Download URL: brax_jumpy-0.1.0.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a3696190e8b6203f8cf74f4eb4d6e9b647b72a0d7547aefdee168e441dea6a1 |
|
MD5 | d5320166647f4f06bbdae620109d2bcf |
|
BLAKE2b-256 | beb3a1364b9b26d4183f2c3e8338667457503149ae48e8db7024f54a46d2f0ab |
File details
Details for the file brax_jumpy-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: brax_jumpy-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fe7e93449ea6ccb3be78bebc8be167e7bd0cd0abcc298b541ae325154dc5d0f |
|
MD5 | 3154179c22193581fd9fb8f7a17bef51 |
|
BLAKE2b-256 | 2a1b0f940702e948598f675d11c5558ba077677f6197cad2e3d2c9b3e4a92461 |