From 78e30e8d2a7849abbd7e64deed586542719ad43c Mon Sep 17 00:00:00 2001 From: Daniel Rasmussen Date: Tue, 6 Oct 2020 12:59:01 -0300 Subject: [PATCH] Fix warning if KerasSpiking not installed --- nengo_dl/compat.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nengo_dl/compat.py b/nengo_dl/compat.py index aec03e24b..f7d81f008 100644 --- a/nengo_dl/compat.py +++ b/nengo_dl/compat.py @@ -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()