'Retrieves the input tensor(s) of a layer.
Only applicable if the layer has exactly one inbound node,
i.e. if it is connected to one incoming layer.
# Returns
Input tensor or list of input tensors.
# Raises
AttributeError: if the layer is connected to
more than one incoming layers.'

@property
def input(self):

    if (len(self.inbound_nodes) > 1):
        raise AttributeError((('Layer    ' + self.name) + '    has    multiple    inbound    nodes,    hence    the    notion    of    "layer    input"    is    ill-defined.    Use    `get_input_at(node_index)`    instead.'))
    elif (not self.inbound_nodes):
        raise AttributeError((('Layer    ' + self.name) + '    is    not    connected,    no    input    to    return.'))
    return self._get_node_attribute_at_index(0, 'input_tensors', 'input')
