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

Add Loihi CIFAR example #19

Merged
merged 1 commit into from
Feb 8, 2019
Merged

Add Loihi CIFAR example #19

merged 1 commit into from
Feb 8, 2019

Conversation

drasmuss
Copy link
Member

@drasmuss drasmuss commented Feb 1, 2019

Adds an example of doing CIFAR-10 on Loihi using nengo-dl/nengo-loihi.

Based on nengo/nengo-loihi#161

TODO:

  • currently notebook has an error (probably related to refactoring changes)
  • update notebook and requirements.txt after CIFAR-10 on Loihi nengo-loihi#161 is merged
  • add a README

Copy link
Member

@tbekolay tbekolay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great, working for me locally on the emulator. Going to push it to the hardware and make sure it runs there too. Aside from waiting for that, one small inline comment, any thoughts @drasmuss or @hunse?

" else:\n",
" output_shape = func.output_shape(func.shape_in)\n",
" assert output_shape.size == fn_layer.size_out\n",
" if 0: # node works on emulator, on Loihi we need something on-chip\n",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice to avoid the if 0. I am guessing we do this because it's faster to do this snippet on the emulator, but the else works on the emulator too, so can we just remove this block? Alternatively, I think we should set the target explicitly in the notebook.

Copy link
Member

@tbekolay tbekolay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed the if 0 block 🤷‍♂️ Merging!

Co-authored-by: Eric Hunsberger <eric.hunsberger@appliedbrainresearch.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants