Write Python. Run JAX
Project description
jaxify
Write Python. Run JAX.
| ⚠️ jaxify is an experimental project under development |
|---|
Right now, only some if statements may work. Use at your own risk. |
Installation
pip install jaxify
Getting started
import jax.numpy as jnp
from jaxify import jitx
@jitx
def absolute_value(x):
if x >= 0: # <-- If conditional in a JIT-compiled function!
return x
else:
return -x
xs = jnp.arange(-1000, 1000)
ys = absolute_value(xs) # <-- Runs at JAX speed!
print(ys)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jaxify-0.0.1.tar.gz
(2.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jaxify-0.0.1.tar.gz.
File metadata
- Download URL: jaxify-0.0.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2336929bf21e5b0f093c9581466896b620ab30026556bffc7e9bf7b8a17c6bfd
|
|
| MD5 |
bd44367ac1fccff016d620c765705062
|
|
| BLAKE2b-256 |
b3de36d21b77d2bd6b85c9b9a46f0c3a34b2fdeb53b48b9e7a60cb4a6d30ec61
|
File details
Details for the file jaxify-0.0.1-py3-none-any.whl.
File metadata
- Download URL: jaxify-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a36e00fa1d36dff69d02701f9d2535a9df6ae397de6f4242c379b0cfc7aee9bc
|
|
| MD5 |
e2c4c189f3e8355ae8fd0762398f7c36
|
|
| BLAKE2b-256 |
c6bd3b6b99c88acf1c83b97ca2d79cbe14293863391a3b76ece97f2284327200
|