'Set the input(s) for the next operation by replacing the terminal nodes.
The arguments can be either layer names or the actual layers.'

def feed(self, *args):

    assert (len(args) != 0)
    self.terminals = []
    for fed_layer in args:
        if isinstance(fed_layer, basestring):
            try:
                fed_layer = self.layers[fed_layer]
            except KeyError:
                raise KeyError(('Unknown    layer    name    fed:    %s' % fed_layer))
        self.terminals.append(fed_layer)
    return self
