A neural network library for JAX
Project description
Synax
A magic-free neural network library for JAX.
No tracing. No transforms. Just purely-functional JAX.
Installation
pip install git+https://github.com/carlosgmartin/synax
Editable install:
pip install -e .
Example
from jax import numpy as jnp, random
import synax
# Create a module.
module = synax.MLP([2, 32, 3])
# Create a random key.
key = random.key(0)
# Initialize parameters.
w = module.init(key)
# Define an input.
x = jnp.ones(2)
# Compute the output.
y = module.apply(w, x)
# Print the output.
print(y)
Codebase quality control
Run the following after every change:
ruff check && ruff format && pyright && pytest
Documentation
Build documentation:
sphinx-build -M html docs docs/_build
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
synax-0.0.0.tar.gz
(14.6 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
synax-0.0.0-py3-none-any.whl
(16.4 kB
view details)
File details
Details for the file synax-0.0.0.tar.gz.
File metadata
- Download URL: synax-0.0.0.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f98e9535b7bd56f74aacad91c71a19638811f176f547917eb12ea875abaaa345
|
|
| MD5 |
64204c3f6b82ad2500aa589079f0124b
|
|
| BLAKE2b-256 |
398daefe4875f58a6619cb0cddec159d6c507f08711b09d085ee419c310ef09f
|
File details
Details for the file synax-0.0.0-py3-none-any.whl.
File metadata
- Download URL: synax-0.0.0-py3-none-any.whl
- Upload date:
- Size: 16.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69703735766fcf9ca084648fd774d2d04f1609a1de56b3c256a0cf641f9cfc74
|
|
| MD5 |
430698aaddf029374e2ecfd24f07ab45
|
|
| BLAKE2b-256 |
ed876a914e3d9fd2cc6a9797b3353f9f453b22ed7079263dcfa898c17c1a8f14
|