Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes in sinabs example #35

Merged
merged 1 commit into from
Jul 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/source/examples/sinabs.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ NIR integration is supported in Sinabs natively.

`sinabs.to_nir` and `sinabs.from_nir` methods allow you to seemlessly navigate between `nir` and `sinabs`. Once your model is in sinabs, you can use this model to train or directly deploy your models to Speck/DynapCNN.

## NIR → Norse
## NIR → Sinabs

```python
import torch
Expand All @@ -27,10 +27,10 @@ sample_data = torch.randn(batch_size, 10)
nir_graph = to_nir(orig_model, sample_data)
```

## Norse → NIR
## Sinabs → NIR
```python
import sinabs.from_nir

nir_model = ...
sinabs_model = norse.from_nir(nir_model, batch_size=4)
sinabs_model = sinabs.from_nir(nir_model, batch_size=4)
```