Skip to content

Fix Sequential crash when GPU backend is None + update train_mlp example#39

Merged
grillcheese123 merged 1 commit intomainfrom
fix/update-examples-v1
Apr 13, 2026
Merged

Fix Sequential crash when GPU backend is None + update train_mlp example#39
grillcheese123 merged 1 commit intomainfrom
fix/update-examples-v1

Conversation

@grillcheese123
Copy link
Copy Markdown
Member

  • containers.py: guard backend.fnn access with None check — fixes AttributeError on GPUs where _get_backend() returns None (e.g. RADV VEGA20)
  • train_mlp.py: reduce dataset from 25600×100 to 512×10 for a fast demo, bump lr from 1e-5 to 1e-3 so loss visibly drops in 10 epochs

Closes #38

- containers.py: guard `backend.fnn` access with None check — fixes
  AttributeError on GPUs where `_get_backend()` returns None (e.g. RADV VEGA20)
- train_mlp.py: reduce dataset from 25600×100 to 512×10 for a fast demo,
  bump lr from 1e-5 to 1e-3 so loss visibly drops in 10 epochs

Closes #38

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@grillcheese123 grillcheese123 merged commit fd5f7cf into main Apr 13, 2026
2 checks passed
@grillcheese123 grillcheese123 linked an issue Apr 13, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update examples to v1.0.0 Running the example from the documentation fails immediately.

1 participant