Skip to content

Commit

Permalink
Fix warning if KerasSpiking not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
drasmuss committed Oct 6, 2020
1 parent d09e1cb commit 78e30e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nengo_dl/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,4 +247,6 @@ def eager_enabled():
try:
from keras_spiking import SpikingActivation, Lowpass, Alpha
except ImportError:
SpikingActivation = Lowpass = Alpha = object()
SpikingActivation = object()
Lowpass = object()
Alpha = object()

0 comments on commit 78e30e8

Please sign in to comment.