Created
March 16, 2022 14:02
-
-
Save neworderofjamie/d03e6efefb5bc015ecbfe9e91f47b6ce to your computer and use it in GitHub Desktop.
strategy pattern for output layers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create sequential model | |
model = SequentialModel() | |
with model: | |
input = InputLayer(IntegrateFireInput(v_thresh=5.0), 784) | |
Layer(Dense(weight=weights[0]), IntegrateFire(v_thresh=5.0)) | |
Layer(Dense(weight=weights[1]), IntegrateFire(v_thresh=5.0, output=SpikeCount())) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment