Skip to content

Commit 3ee20f9

Browse files
committed
fix(ci,docs,demo): fix clippy lint, normalize stub LF line endings, add browser demo link to README, and enhance WASM playground
1 parent 33a4214 commit 3ee20f9

8 files changed

Lines changed: 17673 additions & 17290 deletions

File tree

‎.gitattributes‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
python/oxideon/__init__.py text eol=lf
2+
python/oxideon/__init__.pyi text eol=lf

‎CHANGELOG.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@
6060
reproducible.
6161

6262
### Fixes
63+
- Bug hunt against PyTorch (regression tests in `tests/test_bug_hunt.py`): method-form binary ops accept Python scalars; `//`, `%`, `<<`, `>>`, unary `+`; integer `/` and `div` give floats; `x += y` writes in place (out-of-place when autograd is involved); `nan_to_num` keeps 0-d shape and gradient; `angle(-0.0)`; `x.to(y.dtype)` / `.to("float64")` / `.to(np.float64)`.
64+
- `max`/`min` with a dim return `(values, indices)`; `sort`/`topk`/`median`/`mode`/`kthvalue`/`cummax` return named tuples; `max(other)` is the elementwise maximum.
65+
- Reductions over several dims (`sum`, `mean`, `var`, `std`, `amax`, `amin`, `logsumexp`, `nansum`, `nanmean`), `var`/`std` `correction=`, differentiable `amax`/`amin` (ties share the gradient), full `prod`/`all`/`any`/`count_nonzero` return 0-d tensors.
66+
- Differentiable `repeat`, `tile`, `repeat_interleave`, `hstack`/`vstack`/`dstack`, `diag_embed`, `take`, `index_add`, `index_copy`, `meshgrid`, `cumulative_trapezoid`; `einsum` is the native differentiable kernel (keeps dtype); `where` with a Python scalar; `put`, `scatter(value)`; varargs `permute`/`expand`/`flip`, `T`/`mT`/`H`/`mH`; `triu_indices`/`tril_indices` return one 2xN tensor.
67+
- Advanced indexing (`x[[0, 2]]`, `x[[0, 1], [1, 2]]`, `x[:, idx]`, masks) is one differentiable gather with PyTorch's placement rules (replaces the O(n^2) one-hot path).
68+
- 0-d NumPy results no longer become shape `(1,)` (`np.ascontiguousarray` replaced by `_contig`).
6369
- Optimizers that disagreed with PyTorch: `RMSprop` added `eps` inside the square root (`sqrt(v + eps)` instead of
6470
`sqrt(v) + eps`), `RAdam` switched to the rectified update at rho > 4 instead of 5 and scaled `eps` differently, `ASGD` never
6571
applied its decay `lambd` to the parameters, `Adamax` added `eps` after the max instead of inside it; `Rprop` keyed its state by

‎README.md‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
[![Clippy](https://img.shields.io/badge/clippy-0%20warnings-brightgreen.svg)]()
1919
[![License](https://img.shields.io/badge/license-MIT%20%2F%20Apache--2.0-blue.svg)](LICENSE-MIT)
2020

21-
[Why Oxideon?](#why-oxideon) · [Getting Started](#getting-started) · [Quick Tour](#quick-tour) · [PyTorch Cheat Sheet](#pytorch-cheat-sheet) · [Interop](#ecosystem-interop) · [Architecture](#how-its-organized) · [Docs](docs/)
21+
[Browser Demo](https://voidstackloop.github.io/oxideon/) · [Why Oxideon?](#why-oxideon) · [Getting Started](#getting-started) · [Quick Tour](#quick-tour) · [PyTorch Cheat Sheet](#pytorch-cheat-sheet) · [Interop](#ecosystem-interop) · [Architecture](#how-its-organized) · [Docs](docs/)
2222

2323
</div>
2424

@@ -38,6 +38,10 @@ Most deep learning stacks force a trade-off: either you use Python on top of a m
3838

3939
## Getting Started
4040

41+
### Try it in your browser (no install)
42+
43+
Run Oxideon's Rust tensor + autograd engine compiled to WebAssembly live at **[https://voidstackloop.github.io/oxideon/](https://voidstackloop.github.io/oxideon/)** — trains an MLP interactively right in your browser.
44+
4145
### Install from PyPI
4246

4347
```bash

‎examples/browser_demo/index.html‎

Lines changed: 496 additions & 126 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)