Skip to content

Commit

Permalink
fixup! Add Converter.layers attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
drasmuss committed Feb 28, 2020
1 parent b8647c7 commit ca957e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nengo_dl/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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; "
Expand Down

0 comments on commit ca957e5

Please sign in to comment.