Skip to content

Commit

Permalink
experiments done
Browse files Browse the repository at this point in the history
  • Loading branch information
kmheckel committed Feb 28, 2024
1 parent c0d43df commit d5caf50
Show file tree
Hide file tree
Showing 14 changed files with 3,630 additions and 2,046 deletions.
1,150 changes: 983 additions & 167 deletions research/paper/NMNIST_jax.ipynb

Large diffs are not rendered by default.

456 changes: 0 additions & 456 deletions research/paper/NMNIST_jax_refined.ipynb

This file was deleted.

454 changes: 0 additions & 454 deletions research/paper/NMNIST_jax_test.ipynb

This file was deleted.

18 changes: 1 addition & 17 deletions research/paper/NMNIST_spikingjelly.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@
" lambda x : np.array(x, dtype=np.uint8)\n",
" ])\n",
"\n",
"train_dataset = tonic.datasets.NMNIST(save_to='./tmp/data', transform=frame_transform, train=True)\n",
"test_dataset = tonic.datasets.NMNIST(save_to='./tmp/data', transform=frame_transform, train=False)"
"train_dataset = tonic.datasets.NMNIST(save_to='./tmp/data', transform=frame_transform, train=True)"
]
},
{
Expand Down Expand Up @@ -151,21 +150,6 @@
"x_train, y_train = x_train.to(device), y_train.to(device)"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
"#test_dl = iter(DataLoader(test_dataset, batch_size=len(test_dataset)//10,\n",
"# collate_fn=tonic.collation.PadTensors(batch_first=True), drop_last=True, shuffle=False))\n",
"# \n",
"#x_test, y_test = next(test_dl)\n",
"#x_test, y_test = x_test.to(torch.uint8), y_test.to(torch.uint8)\n",
"#x_test, y_test = x_test.to(device), y_test.to(device)\n",
"#x_test, y_test = shuffle((x_test, y_test))"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
355 changes: 172 additions & 183 deletions research/paper/NMNIST_torch.ipynb

Large diffs are not rendered by default.

376 changes: 135 additions & 241 deletions research/paper/SHD_jax.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit d5caf50

Please sign in to comment.