NengoTorch
NengoTorch lets users keep normal Nengo model construction and run the backend
through PyTorch tensors. Build models with nengo.Network, nengo.Node,
nengo.Ensemble, nengo.Connection, and nengo.Probe, then use
nengo_torch.Simulator.
Install
When published to PyPI:
python -m pip install nengo-torch
From a source checkout:
python -m pip install .
For editable development:
python -m pip install -e .
For examples that load real datasets:
python -m pip install ".[examples]"
For Linux CUDA environments where Triton kernels should be available:
python -m pip install ".[triton]"
Verify The Install
Run the installed smoke test:
nengotorch-smoke --device auto
Verify the fallback-free fast/core path:
nengotorch-smoke --device auto --mode fast --require-compile-safe
Or through Python:
python -m nengo_torch --device auto --json
On GPU/Triton machines:
nengotorch-smoke --device cuda --require-triton
Minimal Use
import nengo
import torch
import nengo_torch
with nengo.Network(seed=1) as net:
inp = nengo_torch.InputNode(size_out=1)
out = nengo.Node(size_in=1)
nengo.Connection(inp, out, synapse=None)
probe = nengo.Probe(out)
x = torch.tensor([[[1.0], [2.0], [3.0]]])
with nengo_torch.Simulator(net, minibatch_size=1, progress_bar=False) as sim:
y = sim.forward({inp: x}, n_steps=x.shape[1])[probe]
print(y.shape)
For Colab-specific setup details, see docs/colab.md.
For broader install scenarios, see docs/install.md.
License
MIT. See LICENSE.
Metadata
Release files for nengo-torch 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nengo_torch-0.1.0.tar.gz | 59.2 kB | Without provenance | Details for nengo_torch-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nengo_torch-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for nengo_torch-0.1.0-py3-none-any.whl |
Total release size: 126.4 kB
Release files / nengo_torch-0.1.0.tar.gz
| Download URL | nengo_torch-0.1.0.tar.gz |
|---|---|
| Size | 59.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
18019d12f0d9e38a197d3f321ced02f4a19497bc158e8ff20b7fb4b0993f1539
|
|
BLAKE2b-256 checksum How to use checksums |
29fccdcbd4d126eea4dbbd892a2f960aafee2311bc3bc4bd96e920498a5d12bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / nengo_torch-0.1.0-py3-none-any.whl
| Download URL | nengo_torch-0.1.0-py3-none-any.whl |
|---|---|
| Size | 67.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ee058960737c106a71698516c7b45f06bc4b6783d3716edb7b7081fcc05bf507
|
|
BLAKE2b-256 checksum How to use checksums |
cadc085fab4fa722189c8580987484506eb4b47b1fc82e8b57e157453b0995e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Security for nengo-torch 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.