From ca957e5243d6cee23c779db8d9f31b5617dffef5 Mon Sep 17 00:00:00 2001 From: Daniel Rasmussen Date: Fri, 28 Feb 2020 10:14:37 -0400 Subject: [PATCH] fixup! Add Converter.layers attribute --- nengo_dl/converter.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nengo_dl/converter.py b/nengo_dl/converter.py index ca7102141..0c8a30623 100644 --- a/nengo_dl/converter.py +++ b/nengo_dl/converter.py @@ -362,9 +362,9 @@ def __init__(self): def _get_key(self, key): if isinstance(key, tf.keras.layers.Layer): - if ( - len(key.inbound_nodes) > 1 - or len(key.inbound_nodes[0].output_tensors) > 1 + if len(key.inbound_nodes) > 1 or ( + isinstance(key.inbound_nodes[0].output_tensors, list) + and len(key.inbound_nodes[0].output_tensors) > 1 ): raise KeyError( "Layer %s is ambiguous because it has multiple output tensors; "