Views
No views yet
1import neurocuda as nc
2
3# Load the pre-converted spiking model
4snn, info = nc.hub.load("neurocuda/sew-resnet-cifar10-snn")
5
6# The model is already spiking — binary IF/LIF spikes, stateful membrane
7snn.eval()
8
9# 4D input (single frame)
10import torch
11x = torch.randn(1, 2, 34, 34) # Adjust channels/size for your model
12output = snn(x)
13
14# 5D input (temporal — event cameras, video)
15x5 = torch.randn(2, 16, 2, 34, 34) # (Batch, Timesteps, Channels, H, W)
16output5 = snn(x5)1@software{neurocuda2026,
2 title = {NeuroCUDA: A PyTorch-to-Neuromorphic Compiler},
3 author = {Krishna Varma},
4 year = {2026},
5 url = {https://github.com/neurocuda/neurocuda}
6}