Skip to content

Commit

Permalink
deploy (#31)
Browse files Browse the repository at this point in the history
* deploy

* readme
  • Loading branch information
lockwo authored Sep 15, 2024
1 parent 4e4b106 commit 7d96bcf
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Deploy package

on:
workflow_dispatch:


jobs:
pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest
# Specifying a GitHub environment is optional, but strongly encouraged
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
# retrieve your distributions here

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ Available at https://lockwo.github.io/distreqx/.
## Quick example

```python
import jax
from jax import numpy as jnp
from distreqx import distributions

key = jax.random.PRNGKey(1234)
Expand All @@ -42,9 +44,9 @@ sigma = jnp.array([0.1, 0.2, 0.3])

dist = distributions.MultivariateNormalDiag(mu, sigma)

samples = dist_distrax.sample(key)
samples = dist.sample(key)

print(dist_distrax.log_prob(samples))
print(dist.log_prob(samples))
```

## Differences with Distrax
Expand Down

0 comments on commit 7d96bcf

Please sign in to comment.